Beispiel #1
0
 private void sAVEToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     //-- SAVE
     if (!string.IsNullOrEmpty(lblStatus.Text))
     {
         KNS kns = new KNS();
         kns.knsParameterChangeSave();
         lblStatus.Text = null;
     }
     else
     {
     }
 }
Beispiel #2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            //-- SAVE
            if (!string.IsNullOrEmpty(lblStatus.Text))
            {
                KNS kns = new KNS();
                kns.knsParameterChangeSave();
                kns.knsWiremapChangeSave();

                Global.KnsParaList = kns.KNSParaPARSE(Global.FilePath, Global.RecipeName);
                Global.KnsWireList = kns.KNSWirePARSE(Global.FilePath, Global.RecipeName);

                this.Text = Global.RecipeName;
                dataGridViewPara.DataSource = Global.KnsParaList;
                dataGridViewWM.DataSource   = Global.KnsWireList;

                lblStatus.Text = null;
            }
            else
            {
            }
        }