示例#1
0
        ////////////////////////////////////////////////////////////////////////////////////


        public StartingWindowForm()
        {
            InitializeComponent();

            this.KeyPreview = true;
            this.KeyDown   += (sender, args) =>
            {
                if (args.KeyCode == Keys.Enter && file_list_box.Items.Count > 0 && save_textBox.Text != "")
                {
                    start_button_Click(sender, args);
                }
            };


            SweeperSettings.main_window = this;
            this.AllowDrop  = true;                                                 //Allows for drag-drop functionality
            this.DragEnter += new DragEventHandler(Form1_DragEnter);                //Drag-drop
            this.DragDrop  += new DragEventHandler(Form1_DragDrop);                 //Drag-drop function assigned
            Setup();
            this_window = this;

            StartingWindowForm.Sweeper_Settings = new SweeperSettings();
            Sweeper_Settings.SetupOnStartup();                                               //Settings for the sweepers
            if (ExtraNoveListe.Program.args != null)
            {
                string[] new_files = ExtraNoveListe.Program.args;
                //foreach (string h in new_files) _lists_in_program.Add(new FirePlayList(h));
                file_list_box.Items.AddRange(new_files);
                if (_files == null)
                {
                    _files = new_files;
                }
                else
                {
                    List <string> temp = _files.ToList();
                    temp.AddRange(new_files);
                    _files = temp.ToArray();
                }
            }
            AddToRightClickFunction();
            ColorSetup();
            Stylize();

            WindowColors.GetBackLog();
            UpdateCheckedItemsInLoadToolStripMenu();
            WindowColors.CheckCheckedColorSchemesInToolStrip += UpdateCheckedItemsInLoadToolStripMenu;
        }
示例#2
0
 private void UpdateSweeperSettings()
 {
     RadioSWSettings.CreateFromSweeperSelectSettings(Radios);
     SweeperSettings.CreateXMLSettingsFile(SweeperSettings.DefaultSweeperSettingsDirectoryPath + @"\SweeperSettings.sws.xml");
 }
示例#3
0
 private void radioSweeperSettingsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Sweeper_Settings = new SweeperSettings();
     Sweeper_Settings.Setup();
 }