Example #1
0
        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 = "会话";
        }
Example #2
0
        public Category(ManWindow target,DataModel dataModel)
        {
            _target = target;
            _DataModel = dataModel;

            InitializeComponent();
        }
Example #3
0
        public ManWindow(Main trayPtn, DataModel dataModel)
        {
            _TrayPtn = trayPtn;
            _DataModel = dataModel;

            InitializeComponent();
        }
Example #4
0
        public BaseInfo(ManWindow target, DataModel dataModel)
        {
            _target = target;
            _DataModel = dataModel;

            InitializeComponent();
        }
Example #5
0
File: AKms.cs Project: burstas/rmps
        public AKms(Main trayPtn, UserModel userModel, DataModel dataModel)
        {
            _trayPtn = trayPtn;
            _UserModel = userModel;
            _DataModel = dataModel;

            InitializeComponent();

            InitData();
        }
Example #6
0
        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);
            }
        }
Example #7
0
 public KmsRobot(DataModel dataModel)
 {
     _DataModel = dataModel;
 }
Example #8
0
        public UserCfg(DataModel dataModel)
        {
            _DataModel = dataModel;

            InitializeComponent();
        }
Example #9
0
        public TagList(DataModel dataModel)
        {
            _DataModel = dataModel;

            InitializeComponent();
        }