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); }
private void LoadConfig() { FormConfigRestore.LoadConfig(this, ConfigFile); if (File.Exists(GetFormulaPath(fastformulaCB.Text)) == false) { fastformulaCB.Text = ""; } }
private void LoadConfig() { //load config FormConfigRestore.LoadConfig(this, cfgpath); //only show items that actually exist EnsureExist(vanillaLB, true); EnsureExist(modLB, true); EnsureExist(outputLB, false); }
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); } } } }
public void LoadConfig() { FormConfigRestore.LoadConfig(this, configPath); }
public static void loadConfig() { FormConfigRestore.LoadConfig(baseform, configPath); }
public List <Tuple <string, string> > LoadConfig() { return(FormConfigRestore.LoadConfig(this, configPath)); }