示例#1
0
        private void FrmProcess_Load(object sender, EventArgs e)
        {
            this.Icon = ComLib.GetIcon(Properties.Resources.Program);

            _ProcessList = Process.GetProcesses();

            listViewProcess.View = View.Details;
            listViewProcess.Columns.Add("PID");
            listViewProcess.Columns.Add("进程名", 180);
            listViewProcess.FullRowSelect = true;

            for (int i = 0; i < _ProcessList.Length; i++)
            {
                ListViewItem item = new ListViewItem(_ProcessList[i].Id.ToString());
                item.SubItems.Add(_ProcessList[i].ProcessName);
                listViewProcess.Items.Add(item);
            }

            for (int i = 0; i < listViewProcess.Items.Count; i++)
            {
                if (listViewProcess.Items[i].SubItems[1].Text.ToUpper() == "FDPS")
                {
                    listViewProcess.Items[i].Selected = true;
                    listViewProcess.EnsureVisible(i);
                    break;
                }
                if (listViewProcess.Items[i].SubItems[1].Text.ToUpper() == "DOSBOX")
                {
                    listViewProcess.Items[i].Selected = true;
                    listViewProcess.EnsureVisible(i);
                    break;
                }
            }
        }
示例#2
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            this.Icon = ComLib.GetIcon(Properties.Resources.Main);
            toolStripStatusLabLocation.Alignment        = ToolStripItemAlignment.Right;
            toolStripStatusLabelLocationValue.Alignment = ToolStripItemAlignment.Right;
            GlobalSpecs.MainForm = this;
            GlobalSpecs.Initialize();

            //DeveloperMode();
        }
示例#3
0
        private void frmRoleInfo_Load(object sender, EventArgs e)
        {
            this.Icon = ComLib.GetIcon(Properties.Resources.Role);

            this.TopMost = GlobalSpecs.TopMost;

            _RoleInfo.FillData();

            LoadBigFace(RoleLib.GetFace(_RoleInfo.M08_人物肖像职业));

            LoadMiniFace(RoleLib.GetMiniFace(_RoleInfo.M08_人物肖像职业, _RoleInfo.M04_人物方向));

            SetFormValue();
        }
示例#4
0
        private void FrmItemSelect_Load(object sender, EventArgs e)
        {
            this.Icon = ComLib.GetIcon(Properties.Resources.Item);

            List <string> Category = new List <string>();

            Category.Add("全部");
            foreach (var item in SettingsLib.ItemInfoList)
            {
                if (!Category.Contains(item.Category))
                {
                    Category.Add(item.Category);
                }
            }

            comBoxCategory.Items.AddRange(Category.ToArray());
            comBoxCategory.SelectedIndex = 0;
        }
示例#5
0
        private void FrmMagicSelect_Load(object sender, EventArgs e)
        {
            this.Icon = ComLib.GetIcon(Properties.Resources.Magic);

            #region Maigc List
            listBoxMagic1.Items.Clear();
            listBoxMagic2.Items.Clear();
            listBoxMagic3.Items.Clear();
            listBoxMagic4.Items.Clear();
            listBoxMagic5.Items.Clear();

            var list1 = MagicLib.MagicList1.Where(item => item.Column == "1").Select(item => new { item.Column, item.Code, item.Name });
            listBoxMagic1.DataSource   = list1.ToList();
            listBoxMagic1.SelectedItem = null;
            var list2 = MagicLib.MagicList2.Where(item => item.Column == "2").Select(item => new { item.Column, item.Code, item.Name });
            listBoxMagic2.DataSource   = list2.ToList();
            listBoxMagic2.SelectedItem = null;
            var list3 = MagicLib.MagicList3.Where(item => item.Column == "3").Select(item => new { item.Column, item.Code, item.Name });
            listBoxMagic3.DataSource   = list3.ToList();
            listBoxMagic3.SelectedItem = null;
            var list4 = MagicLib.MagicList4.Where(item => item.Column == "4").Select(item => new { item.Column, item.Code, item.Name });
            listBoxMagic4.DataSource   = list4.ToList();
            listBoxMagic4.SelectedItem = null;
            var list5 = MagicLib.MagicList5.Where(item => item.Column == "5").Select(item => new { item.Column, item.Code, item.Name });
            listBoxMagic5.DataSource   = list5.ToList();
            listBoxMagic5.SelectedItem = null;
            #endregion
            #region Magic And Job
            listBoxMagicRole.Items.Clear();
            var roleLIst = SettingsLib.MagicAndJobInfoList.Where(item => item.Role != "").Select(item => new { item.Role });
            comBoxRole.DataSource = roleLIst.ToList();
            #endregion

            if (_ExistMagicList != null)
            {
                foreach (var magic in _ExistMagicList)
                {
                    SetExistMagic(magic);
                }
            }
        }
示例#6
0
 private void FrmAutoSerachQuestion_Load(object sender, EventArgs e)
 {
     this.Icon = ComLib.GetIcon(Properties.Resources.Question);
 }