Inheritance: System.Windows.Forms.Form
Esempio n. 1
0
        private void CMS_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            ToolStripItem _this = e.ClickedItem;

            SkillData _selected =
                A_Collection.SkillCastConditions.Custom.CustomDefinitions.FirstOrDefault(x => x.Name == _this.Text);

            if (_selected != null)
            {
                if (Window_SkillEditor._this == null)
                {
                    Window_SkillEditor._PreselectedDefinition = true;
                    Window_SkillEditor._SelectedSkill         = _selected;
                    Window_SkillEditor
                        Editor = new Window_SkillEditor();
                    Editor.Show();
                }
            }
            else
            {
                if (Window_SkillEditor._this == null)
                {
                    Window_SkillEditor._CreateNewDefinition   = true;
                    Window_SkillEditor._NewDefinitionPowerSNO = int.Parse(_this.Name);
                    Window_SkillEditor
                        Editor = new Window_SkillEditor();
                    Editor.Show();
                }
            }
        }
Esempio n. 2
0
 private void TabControl1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (tabControl1.SelectedIndex == 4)
     {
         tabControl1.SelectedIndex = 0;
         if (Window_SkillEditor._this == null)
         {
             Window_SkillEditor SE = new Window_SkillEditor();
             SE.Show();
         }
     }
 }
Esempio n. 3
0
        private void CMS_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            ToolStripItem _this = e.ClickedItem;

            SkillData _selected =
                A_Collection.SkillCastConditions.Custom.CustomDefinitions.FirstOrDefault(x => x.Name == _this.Text);

            if (_selected != null)
            {
                if (Window_SkillEditor._this == null)
                {
                    Window_SkillEditor._PreselectedDefinition = true;
                    Window_SkillEditor._SelectedSkill = _selected;
                    Window_SkillEditor
                        Editor = new Window_SkillEditor();
                    Editor.Show();
                }
            }
            else
            {
                if (Window_SkillEditor._this == null)
                {
                    Window_SkillEditor._CreateNewDefinition = true;
                    Window_SkillEditor._NewDefinitionPowerSNO = int.Parse(_this.Name);
                    Window_SkillEditor
                        Editor = new Window_SkillEditor();
                    Editor.Show();
                }
            }
        }
Esempio n. 4
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            Window_SkillEditor se = new Window_SkillEditor();

            se.Show();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            
            remove_PowerNamePrefixed();

            _this = this;

            typeof(Panel).InvokeMember("DoubleBuffered",
    BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic,
    null, Panel_SelectedSkillDetails, new object[] { true });

            typeof(Panel).InvokeMember("DoubleBuffered",
    BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic,
    null, Panel_SkillOverview, new object[] { true });

            Window_ActivePowerView.Get_LatestPowers();

            LBL_CopyInfo.BackColor = Color.Transparent;
            LBL_CopyInfo.AutoSize = true;
            LBL_CopyInfo.Font = new Font(Window_Main._FontCollection.Families[0], (float)8.25, FontStyle.Italic);
            LBL_CopyInfo.ForeColor = Color.Black;
            LBL_CopyInfo.Text = "+ Shift & LeftClick\nCopy an existing Condition OR SkillDefinition";
            LBL_CopyInfo.TextAlign = ContentAlignment.MiddleCenter;

            this.Top = Properties.Settings.Default.D3Helper_MainForm_StartPosition.Y;
            this.Left = Properties.Settings.Default.D3Helper_MainForm_StartPosition.X;

            Panel_SkillOverview.AutoScroll = true;
            Panel_SelectedSkillDetails.AutoScroll = true;

            CB_PowerSelection.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDown;
            CB_PowerSelection.AutoCompleteMode = AutoCompleteMode.Suggest;
            CB_PowerSelection.AutoCompleteSource = AutoCompleteSource.ListItems;

            CB_SelectedRune.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDown;
            CB_SelectedRune.AutoCompleteMode = AutoCompleteMode.Suggest;
            CB_SelectedRune.AutoCompleteSource = AutoCompleteSource.ListItems;

            CB_ConditionSelection.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            //CB_ConditionSelection.AutoCompleteMode = AutoCompleteMode.Suggest;
            //CB_ConditionSelection.AutoCompleteSource = AutoCompleteSource.None;
            
            if (_SelectedSkill == null)
            {
                BTN_Update.Visible = false;
                Panel_ConditionEditor.Visible = false;
                BTN_Import.Visible = false;
                BTN_Export.Visible = false;

            }
            if(_SelectedCondition == null)
            {
                BTN_ConditionEdit.Visible = false;
                BTN_ContitionRemove.Visible = false;
            }

            Populate_ComboBox_PowerSelection();
            Populate_ComboBox_ConditionSelection();

            Update_View();

        }
        private void Window_SkillEditor_FormClosed(object sender, FormClosedEventArgs e)
        {
            Remove_UnassignedConditions();

            A_Tools.T_ExternalFile.CustomSkillDefinitions.Save(A_Collection.SkillCastConditions.Custom.CustomDefinitions);

            _this = null;
        }
Esempio n. 7
0
 private void TabControl1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (tabControl1.SelectedIndex == 4)
     {
         tabControl1.SelectedIndex = 0;
         if (Window_SkillEditor._this == null)
         {
             Window_SkillEditor SE = new Window_SkillEditor();
             SE.Show();
         }
     }
     if (tabControl1.SelectedIndex == 6)
     {
         SkillBuild_UpdateView();
     }
 }