private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			FormAutoNoteControlEdit FormA=new FormAutoNoteControlEdit();
			FormA.ControlCur=AutoNoteControls.Listt[e.Row];
			FormA.ShowDialog();
			if(FormA.DialogResult!=DialogResult.OK) {
				return;
			}
			FillGrid();
		}
Esempio n. 2
0
		private void butAdd_Click(object sender,EventArgs e) {
			FormAutoNoteControlEdit FormA=new FormAutoNoteControlEdit();
			FormA.IsNew=true;
			FormA.ControlCur=new AutoNoteControl();
			FormA.ShowDialog();
			if(FormA.DialogResult!=DialogResult.OK) {
				return;
			}
			FillGrid();
		}
Esempio n. 3
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormAutoNoteControlEdit FormA = new FormAutoNoteControlEdit();

            FormA.ControlCur = _listAutoNoteControls[e.Row];
            FormA.ShowDialog();
            if (FormA.DialogResult != DialogResult.OK)
            {
                return;
            }
            FillGrid();
        }
Esempio n. 4
0
        private void butAdd_Click(object sender, EventArgs e)
        {
            FormAutoNoteControlEdit FormA = new FormAutoNoteControlEdit();

            FormA.IsNew      = true;
            FormA.ControlCur = new AutoNoteControl();
            FormA.ShowDialog();
            if (FormA.DialogResult != DialogResult.OK)
            {
                return;
            }
            FillGrid();
        }
Esempio n. 5
0
		private void butEdit_Click(object sender,EventArgs e) {
			if(gridMain.GetSelectedIndex()==-1) {
				MsgBox.Show(this,"Please select an item first.");
				return;
			}
			FormAutoNoteControlEdit FormA=new FormAutoNoteControlEdit();
			FormA.ControlCur=AutoNoteControls.Listt[gridMain.GetSelectedIndex()];
			FormA.ShowDialog();
			if(FormA.DialogResult!=DialogResult.OK) {
				return;
			}
			FillGrid();
		}
Esempio n. 6
0
        private void butEdit_Click(object sender, EventArgs e)
        {
            if (gridMain.GetSelectedIndex() == -1)
            {
                MsgBox.Show(this, "Please select an item first.");
                return;
            }
            FormAutoNoteControlEdit FormA = new FormAutoNoteControlEdit();

            FormA.ControlCur = AutoNoteControls.Listt[gridMain.GetSelectedIndex()];
            FormA.ShowDialog();
            if (FormA.DialogResult != DialogResult.OK)
            {
                return;
            }
            FillGrid();
        }
Esempio n. 7
0
        private void butCreateControl_Click(object sender, EventArgs e)
        {
            FormAutoNoteControlEdit form = new FormAutoNoteControlEdit();

            form.IsNew      = true;
            form.ControlCur = new AutoNoteControl();
            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                ControlContentViewerVisible(false);
                AutoNoteControls.Refresh();
                listBoxControls.Items.Clear();
                for (int i = 0; i < AutoNoteControls.Listt.Count; i++)
                {
                    listBoxControls.Items.Add(AutoNoteControls.Listt[i].Descript);
                }
            }
        }
Esempio n. 8
0
        private void butEditControl_Click(object sender, EventArgs e)
        {
            //should launch FormAutoNoteControlEdit
            //I did not have time to look closely at this:

            /*
             * ControlsToInc=new string[listBoxControlsToIncl.Items.Count];
             * for (int i=0; i<listBoxControlsToIncl.Items.Count; i++) {
             *      if (listBoxControlsToIncl.Items[i].ToString()!="") {
             *              ControlsList=AutoNoteControls.ControlNameToNum(listBoxControlsToIncl.Items[i].ToString());
             *              ControlsToInc[i]=ControlsList[0].AutoNoteControlNum.ToString();
             *      }
             * }
             * RefreshControlsToIncEdit=true;*/
            if (listBoxControls.SelectedIndex == -1)
            {
                return;
            }
            FormAutoNoteControlEdit form = new FormAutoNoteControlEdit();

            form.IsNew      = false;
            form.ControlCur = AutoNoteControls.Listt[listBoxControls.SelectedIndex];
            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                ControlContentViewerVisible(false);
                AutoNoteControls.Refresh();
                listBoxControls.Items.Clear();
                for (int i = 0; i < AutoNoteControls.Listt.Count; i++)
                {
                    listBoxControls.Items.Add(AutoNoteControls.Listt[i].Descript);
                }
                listBoxControlsToIncl.Items.Clear();
                for (int i = 0; i < listBoxControlToIncNum.Items.Count; i++)
                {
                    ControlsList = AutoNoteControls.ControlNumToName(listBoxControlToIncNum.Items[i].ToString());
                    listBoxControlsToIncl.Items.Add(ControlsList[0].Descript);
                }
            }
        }