Пример #1
0
        private void view_Load(object sender, EventArgs e)
        {
            serverview.ListViewItemSorter = lvs;
            //turn off thread safety
            CheckForIllegalCrossThreadCalls = false;

            threadsInstance = new threads(this);
            Application.DoEvents();

            //select the first item in the latency filter drop box
            latencydrop.SelectedIndex = 0;

            //make sure the current directory is the working directory
            resetDirectory();

            //get config
            FormConfigRestore.LoadConfig(this, configlocation);

            //get previous info
            serversInstance.deserialise(serverlistfile);

            //get all the columns
            serverview.Columns.Clear();
            foreach (var kvp in protocolInstance.getColumns())
            {
                serverview.Columns.Add(kvp.Key, kvp.Value).Name = kvp.Key;
            }

            //apply the loaded filters to all the servers
            allServersToServerView();

            Controller.ToolStripText(toolStripStatusLabel1, ref statusStrip1, "Ready");

            Licensing.LicensingForm(this, menuStrip1, HelpString, OtherText);
        }
Пример #2
0
 private void LoadConfig()
 {
     FormConfigRestore.LoadConfig(this, ConfigFile);
     if (File.Exists(GetFormulaPath(fastformulaCB.Text)) == false)
     {
         fastformulaCB.Text = "";
     }
 }
Пример #3
0
 private void LoadConfig()
 {
     //load config
     FormConfigRestore.LoadConfig(this, cfgpath);
     //only show items that actually exist
     EnsureExist(vanillaLB, true);
     EnsureExist(modLB, true);
     EnsureExist(outputLB, false);
 }
Пример #4
0
        public void loadConfig()
        {
            var lits = FormConfigRestore.LoadConfig(this, configPath);

            if (lits != null)
            {
                foreach (var l in lits)
                {
                    if (l.Item1.Equals(loadlast.Name))
                    {
                        var files = l.Item2.Split(new[] { "|" }, StringSplitOptions.RemoveEmptyEntries);
                        LoadFiles(files);
                    }
                }
            }
        }
Пример #5
0
 public void LoadConfig()
 {
     FormConfigRestore.LoadConfig(this, configPath);
 }
Пример #6
0
 public static void loadConfig()
 {
     FormConfigRestore.LoadConfig(baseform, configPath);
 }
Пример #7
0
 public List <Tuple <string, string> > LoadConfig()
 {
     return(FormConfigRestore.LoadConfig(this, configPath));
 }