This commit is contained in:
sc committed 2024-08-28 00:11:39 +08:00
commit 40aacd3a65
7 files changed
+169 -8

No files matched your search

-2
View File
@@ -119,7 +119,6 @@ namespace DyeingComputer.View
frm.Accept += new EventHandler(InputBox_Rename_accept);
frm.ShowDialog();
}
void InputBox_Rename_accept(object sender, EventArgs e)//重命名按钮窗口返回
{
//事件的接收者通过一个简单的类型转换得到InputBox的引用
@@ -146,7 +145,6 @@ namespace DyeingComputer.View
frm.Accept += new EventHandler(InputBox_Remark_accept);
frm.ShowDialog();
}
void InputBox_Remark_accept(object sender, EventArgs e)//备注按钮窗口返回
{
//事件的接收者通过一个简单的类型转换得到InputBox的引用
+12 -4
View File
@@ -95,14 +95,17 @@ namespace DyeingComputer.View
}
}
private void ProgramgroupView_edit_Click(object sender, RoutedEventArgs e)//
private void ProgramgroupView_edit_Click(object sender, RoutedEventArgs e)//编辑
{
ViewStep viewstop = new ViewStep();
viewstop.ShowDialog();
}
private void ProgramgroupView_Quit_Click(object sender, RoutedEventArgs e)//退出
{
this.Visibility = Visibility.Collapsed;//隐藏控件
}
private void ProgramgroupView_del_Click(object sender, RoutedEventArgs e)//删除行
{
int d = 0;
@@ -117,6 +120,7 @@ namespace DyeingComputer.View
Grid.ItemsSource = sql.Tables[0].DefaultView; //转换显示计划表
}
}
private void ProgramgroupView_Insert_Click(object sender, RoutedEventArgs e)//插入行
{
int d = 0;
@@ -131,6 +135,7 @@ namespace DyeingComputer.View
Dat();
Grid.ItemsSource = sql.Tables[0].DefaultView; //转换显示计划表
}
private void ProgramgroupView_Save_Click(object sender, RoutedEventArgs e)//保存
{
int r = 0;
@@ -154,6 +159,11 @@ namespace DyeingComputer.View
r = SQLiteHelpers.InsertData("ProgramSteps", SQLiteHelpers.DataTableToDictionary(data_t));//行插入
}
Dictionary<string, object> Program_Step = new Dictionary<string, object>();//缓存函数
Program_Step.Add("Step", a-1);
SQLiteHelpers.Update("ProgramName", Program_Step, "ProgramID='" + ProgramID + "'", null);
SQLiteHelpers.Close(); //关闭连接
if (r != 0)
{
@@ -161,8 +171,6 @@ namespace DyeingComputer.View
this.Visibility = Visibility.Collapsed;//隐藏控件
}
}
}
}