Пример #1
0
 private void butAdd_Click(object sender, System.EventArgs e)
 {
     FormAutoCodeEdit FormACE=new FormAutoCodeEdit();
       FormACE.IsNew=true;
     FormACE.AutoCodeCur=new AutoCode();
     AutoCodes.Insert(FormACE.AutoCodeCur);
       FormACE.ShowDialog();
     if(FormACE.DialogResult!=DialogResult.OK){
         return;
     }
     changed=true;
       FillList();
 }
Пример #2
0
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            FormAutoCodeEdit FormACE = new FormAutoCodeEdit();

            FormACE.IsNew       = true;
            FormACE.AutoCodeCur = new AutoCode();
            AutoCodes.Insert(FormACE.AutoCodeCur);
            FormACE.ShowDialog();
            if (FormACE.DialogResult != DialogResult.OK)
            {
                return;
            }
            changed = true;
            FillList();
        }
Пример #3
0
        private void listAutoCodes_DoubleClick(object sender, System.EventArgs e)
        {
            if (listAutoCodes.SelectedIndex == -1)
            {
                return;
            }
            AutoCode         AutoCodeCur = _listAutoCodes[listAutoCodes.SelectedIndex];
            FormAutoCodeEdit FormACE     = new FormAutoCodeEdit();

            FormACE.AutoCodeCur = AutoCodeCur;
            FormACE.ShowDialog();
            if (FormACE.DialogResult != DialogResult.OK)
            {
                return;
            }
            changed = true;
            FillList();
        }
Пример #4
0
 private void listAutoCodes_DoubleClick(object sender, System.EventArgs e)
 {
     if(listAutoCodes.SelectedIndex==-1){
         return;
     }
       AutoCode AutoCodeCur=AutoCodeC.List[listAutoCodes.SelectedIndex];
       FormAutoCodeEdit FormACE=new FormAutoCodeEdit();
     FormACE.AutoCodeCur=AutoCodeCur;
       FormACE.ShowDialog();
     if(FormACE.DialogResult!=DialogResult.OK){
         return;
     }
     changed=true;
       FillList();
 }