Esempio n. 1
0
 void FormLoad()
 {
     try
     {
         double w = (double)this.Width / 12;
         this.lstShortCuts.Columns[0].Width = (int)(2 * w - 9);
         this.lstShortCuts.Columns[1].Width = (int)(7 * w - 9);
         this.lstShortCuts.Columns[2].Width = (int)(3 * w - 9);
         SQLiteManager.Execute(Crud.CreateTableQuery(), null);
         AppVariables.AllList = SQLiteManager.AllList();
         shortCutList         = AppVariables.AllList;
         Utility.List2ListView(lstShortCuts, shortCutList);
         cmbxTur.SelectedIndex = 0;
         this.lstShortCuts.AutoResizeColumns(ColumnHeaderAutoResizeStyle.None);
     }
     catch (Exception ex)
     {
         MessageUtil.Error("Program could not be started.");
         Logger.WriteException(ex, "ListFormLoad", "Program could not be loadaed.");
     }
 }