public void CreateSelectedRowData() { //var dm = new DataModel(); //dm.SetData(SelectedRow); //直接将SelectedRow实例传过去,这样在另一处更改会关联此实例变化 var bs = new BombScreen(SelectedRow); bs.ShowDialog(); //if (bs.IsCreateSuccess) //{ // foreach (var item in CallList) // { // if (item.ID == dm.ID) // { // item.IsDisposed = Convert.ToInt32(CreteFaultList.GetState(bs.type)); // return; // } // } //} }
//public static AbstractDataBase sqlOperateClass = DBFactory.Create(DBType.SqlServer, DBFactory.GetConn()); public static void ShowCreateWindow(string number, CallTime ct) { BombScreen bs = new BombScreen(number, ct); bs.Show(); }