예제 #1
0
        // Token: 0x060002E3 RID: 739 RVA: 0x000144D8 File Offset: 0x000126D8
        private void btnNewStyle_Click(object sender, EventArgs e)
        {
            GetKeyItemBook_ScrapStyle(out var keybook);
            var           cstyle = new CStyle();
            StyleEditForm styleEditForm2;
            var           styleEditForm = styleEditForm2 = new StyleEditForm(cstyle, keybook);

            try
            {
                styleEditForm.Text = "新建自动操作";
                var dialogResult = styleEditForm.ShowDialog();
                if (dialogResult == DialogResult.OK)
                {
                    cstyle.MakeStyleID();
                    listStyles.Items.Add(cstyle);
                    RefreshStyleList_Scrap();
                }
            }
            finally
            {
                if (styleEditForm2 != null)
                {
                    ((IDisposable)styleEditForm2).Dispose();
                }
            }
        }
예제 #2
0
 // Token: 0x060002E0 RID: 736 RVA: 0x0001434C File Offset: 0x0001254C
 private void EditStyle_ScrapStyle()
 {
     if (listStyles.SelectedItem != null)
     {
         GetKeyItemBook_ScrapStyle(out var keybook);
         var selectedIndex = listStyles.SelectedIndex;
         var styleEditForm = new StyleEditForm((CStyle)listStyles.SelectedItem, keybook)
         {
             Text = ((CStyle)listStyles.SelectedItem).StyleName + "的相关编辑"
         };
         var dialogResult = styleEditForm.ShowDialog();
         if (dialogResult == DialogResult.OK)
         {
             listStyles.Items[selectedIndex] = styleEditForm.Style;
             RefreshStyleList_Scrap();
         }
     }
 }
예제 #3
0
 // Token: 0x060002E4 RID: 740 RVA: 0x00014550 File Offset: 0x00012750
 private void btnCopy_Click_1(object sender, EventArgs e)
 {
     if (listStyles.SelectedItem != null)
     {
         GetKeyItemBook_ScrapStyle(out var keybook);
         var cstyle = ((CStyle)listStyles.SelectedItem).DeepCopy();
         cstyle.StyleName = "";
         cstyle.ClearKey();
         var dialogResult = new StyleEditForm(cstyle, keybook)
         {
             Text = "新建自动操作"
         }.ShowDialog();
         if (dialogResult == DialogResult.OK)
         {
             cstyle.MakeStyleID();
             listStyles.Items.Add(cstyle);
         }
     }
 }