private void button1_Click(object sender, EventArgs e) { try { if (IsEdit) { ClsBLL.SaveItem(treeView3); MessageBox.Show("保存成功!"); } } catch (Exception Err) { MessageBox.Show(Err.Message + Err.StackTrace.Substring(Err.StackTrace.IndexOf("行号"))); } }
private void button1_Click(object sender, EventArgs e) { try { if (IsEdit) { ClsBLL.SaveItem(treeView3); MessageBox.Show("保存成功!"); } } catch (Exception Err) { MessageBox.Show(Err.Message + Err.StackTrace.Substring(Err.StackTrace.IndexOf("行号"))); } }