private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); CTLConfig.GetConfiguration(); Application.Run(new Form1()); }
private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F1) { CTLConfig.SetSLApp(this.txtslapp.Text); } else if (e.KeyCode == Keys.F2) { CTLConfig.SetWidthApp(this.txtwidth.Text); } else if (e.KeyCode == Keys.F3) { CTLConfig.SetHightApp(this.txthight.Text); } }
private void btSave_Click_1(object sender, EventArgs e) { ((DataTable)this.gridlist.DataSource).WriteXml(Path.Combine(Application.StartupPath, "list.xml")); CTLConfig.Setvalue(this.txt1to24.Text); }