예제 #1
0
        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;
            //        }
            //    }
            //}
        }
예제 #2
0
        //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();
        }