Beispiel #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();
                }
            }
        }
Beispiel #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();
         }
     }
 }
Beispiel #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();
                }
            }
        }
Beispiel #4
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            Window_SkillEditor se = new Window_SkillEditor();

            se.Show();
        }
 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();
     }
 }