Ejemplo n.º 1
0
 private void ButtonSqlList_Click(object sender, EventArgs e)
 {
     if (CheckBackgroundWorker1End())
     {
         ClearAllList();
         SqlLite.InsertAndQuestionSQL sqlInsertAndQuestion = new SqlLite.InsertAndQuestionSQL();
         orderList = load.LoadOrderList(LoadOrder.ChoiceLoadOrder.Sql);
         LoadLVPriceAll();
         ButtonColorChange(Button.HistSQL);
     }
     else
     {
         MassageBoxDataProcessing();
     }
 }
Ejemplo n.º 2
0
        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            Save         save      = new Save();
            List <Order> listOrder = new List <Order>();

            SqlLite.InsertAndQuestionSQL sql = new SqlLite.InsertAndQuestionSQL();

            if (bSQLToTxt.BackColor == Color.Firebrick)
            {
                listOrder = load.LoadOrderList(LoadOrder.ChoiceLoadOrder.Sql);
                save.SaveOrderList(Save.ChoiceSaveOrder.Txt, listOrder);
            }
            if (bTxtToSQL.BackColor == Color.Firebrick)
            {
                listOrder = load.LoadOrderList(LoadOrder.ChoiceLoadOrder.Sql);
                save.SaveOrderList(Save.ChoiceSaveOrder.Sql, listOrder);
            }
        }