Exemple #1
0
 private void BT_Edit_Click(object sender, EventArgs e)
 {
     if (CBE_PresetName.Properties.Items.Count == 0)
     {
         MessageBox.Show("没有工艺");
         return;
     }
     if (CBE_PresetName.Properties.Items.Count != 0)
     {
         Edit_Preset frm = new Edit_Preset(CBE_PresetName.EditValue.ToString(), gv.GetSelectedRows()[0]);
         frm.ShowDialog();
         Frm_Preset_Load(this, null);
     }
 }
Exemple #2
0
 private void BT_Edit_Click(object sender, EventArgs e)
 {
     if (CBE_PresetName.Properties.Items.Count == 0)
     {
         MessageBox.Show("没有工艺");
         return;
     }
     if (CBE_PresetName.Properties.Items.Count != 0)
     {
         Edit_Preset frm = new Edit_Preset(CBE_PresetName.EditValue.ToString(), gv.GetSelectedRows()[0]);
         frm.ShowDialog();
         Frm_Preset_Load(this,null);
     }
 }
        private void BT_Edit_Click(object sender, EventArgs e)
        {
            string Buff = TxtData.PolishData.IsEditTool?"TOOL":"FRAME";

            if (TxtData.PolishData.IsEditTool)
            {
                Edit_ToolLib frm = new Edit_ToolLib(Buff, gv.GetSelectedRows()[0]);
                frm.ShowDialog();
            }
            else
            {
                Edit_Preset frm = new Edit_Preset(Buff, gv.GetSelectedRows()[0]);
                frm.ShowDialog();
            }

            Frm_StaubliPreset_Load(this, null);
        }
        private void BT_Edit_Click(object sender, EventArgs e)
        {
            string Buff=TxtData.PolishData.IsEditTool?"TOOL":"FRAME";
            if (TxtData.PolishData.IsEditTool)
            {
                Edit_ToolLib frm = new Edit_ToolLib(Buff, gv.GetSelectedRows()[0]);
                frm.ShowDialog();
            }
            else
            {
                Edit_Preset frm = new Edit_Preset(Buff, gv.GetSelectedRows()[0]);
                frm.ShowDialog();
            }

            Frm_StaubliPreset_Load(this, null);
        }