Esempio n. 1
0
 private void DialogButton1_DialogButtonClick(object sender, DialogButton.DialogButtonClickEventArgs e)
 {
     if (e.Result == DialogResult.OK)
     {
         this.DialogResult = DialogResult.OK;
     }
     this.Close();
 }
Esempio n. 2
0
 private void dialogButton_DialogButtonClick(object sender, Controls.DialogButton.DialogButtonClickEventArgs e)
 {
     DialogResult = e.Result;
     if (e.Result == DialogResult.OK)
     {
         Config.BackupMode     = (EBackupMode)_ComboBoxHelper.GetValue();
         Config.BackupLocation = textBoxLocation.Text;
     }
     Close();
 }
Esempio n. 3
0
        private void dialogButton1_DialogButtonClick(object sender, Controls.DialogButton.DialogButtonClickEventArgs e)
        {
            if (e.Result == DialogResult.OK)
            {
                SelectedNode = treeViewLibrary.SelectedNode;
            }

            DialogResult = e.Result;
            Close();
        }
Esempio n. 4
0
        private void dlgButton_DialogButtonClick(object sender, Controls.DialogButton.DialogButtonClickEventArgs e)
        {
            DialogResult = e.Result;

            if (e.Result == DialogResult.OK)
            {
                Config.FavoriteLibs.Clear();
                foreach (string file in lsbItems.GetCollection <Fav>().Select(p => p.FileName))
                {
                    Config.FavoriteLibs.Add(file);
                }
            }
            Close();
        }
Esempio n. 5
0
 private void dialogButton_DialogButtonClick(object sender, Controls.DialogButton.DialogButtonClickEventArgs e)
 {
     DialogResult = e.Result;
     if (e.Result == DialogResult.OK)
     {
         Config.Theme = (ETheme)_ComboBoxHelper.GetValue();
         if (rbSortA.Checked)
         {
             Config.SortMode = ESortMode.Alphabetic;
         }
         if (rbSortB.Checked)
         {
             Config.SortMode = ESortMode.AlphabeticGrouped;
         }
     }
     Close();
 }
Esempio n. 6
0
 private void DialogButton1_DialogButtonClick(object sender, Controls.DialogButton.DialogButtonClickEventArgs e)
 {
     DialogResult = e.Result;
     Close();
 }
Esempio n. 7
0
        private void dialogButton1_DialogButtonClick(object sender, Controls.DialogButton.DialogButtonClickEventArgs e)
        {
            if (e.Result == DialogResult.OK)
            {
                if (listViewTypes.SelectedItems.Count > 0)
                {
                    NoteName      = tbName.Text;
                    Root          = cbRoot.Checked;
                    DefaultParent = cbDefaultParent.Checked;
                    Repeat        = (int)nuRepeat.Value;

                    string _name = listViewTypes.SelectedItems[0].Name;
                    switch (_name)
                    {
                    case "Folder":
                        SelectedType = CodeType.Folder;
                        break;

                    case "C#":
                        SelectedType = CodeType.CSharp;
                        break;

                    case "Sql":
                        SelectedType = CodeType.SQL;
                        break;

                    case "Text":
                        SelectedType = CodeType.None;
                        break;

                    case "Visual Basic":
                        SelectedType = CodeType.VB;
                        break;

                    case "Lua":
                        SelectedType = CodeType.Lua;
                        break;

                    case "Xml":
                        SelectedType = CodeType.XML;
                        break;

                    case "PHP":
                        SelectedType = CodeType.PHP;
                        break;

                    case "HTML":
                        SelectedType = CodeType.HTML;
                        break;

                    case "Rich Text":
                        SelectedType = CodeType.RTF;
                        break;

                    case "Markdown":
                        SelectedType = CodeType.MarkDown;
                        break;

                    case "Template":
                        SelectedType = CodeType.Template;
                        break;
                    }
                }
            }

            DialogResult = e.Result;
            Close();
        }