public KmsHuman(Main trayPtn, KmsRobot robot, DataModel dataModel) { _TrayPtn = trayPtn; _Robot = robot; _DataModel = dataModel; InitializeComponent(); BtRes.Image = _ResLeave; CbRes.Items.Add(new MCategory { C2010203 = "0", C2010205 = "请选择" }); CbRes.Items.AddRange(_DataModel.ListCategory().ToArray()); CbRes.SelectedIndex = 0; MiTxt.Checked = true; if (_TxtLast == null) { _TxtLast = new TxtDefault(this, _DataModel); } ShowControl(_TxtLast.Control); Rectangle rect = Screen.PrimaryScreen.WorkingArea; _MagicPtn = new MagicPtn(this); _MagicPtn.UseDefaultAction(); _MagicPtn.ExitButtonHandler = PbExit_Click; _MagicPtn.Location = new Point(rect.Width - _MagicPtn.Width, rect.Height - _MagicPtn.Height); _MagicPtn.Text = "会话"; }
public Category(ManWindow target,DataModel dataModel) { _target = target; _DataModel = dataModel; InitializeComponent(); }
public ManWindow(Main trayPtn, DataModel dataModel) { _TrayPtn = trayPtn; _DataModel = dataModel; InitializeComponent(); }
public BaseInfo(ManWindow target, DataModel dataModel) { _target = target; _DataModel = dataModel; InitializeComponent(); }
public AKms(Main trayPtn, UserModel userModel, DataModel dataModel) { _trayPtn = trayPtn; _UserModel = userModel; _DataModel = dataModel; InitializeComponent(); InitData(); }
public override void Load() { DataModel = new DataModel(this); const string file = "magickms.cfg"; if (!File.Exists(file)) { return; } Uc.Properties prop = new Uc.Properties(); prop.Load(file); string solHash = prop.Get("sln.hash", ""); if (CharUtil.IsValidateHash(solHash)) { Solution = DataModel.ReadSolution(solHash); } }
public KmsRobot(DataModel dataModel) { _DataModel = dataModel; }
public UserCfg(DataModel dataModel) { _DataModel = dataModel; InitializeComponent(); }
public TagList(DataModel dataModel) { _DataModel = dataModel; InitializeComponent(); }