コード例 #1
0
        private void list2_DoubleClick(object sender, System.EventArgs e)
        {
            FormQueryEdit FormQE = new FormQueryEdit();

            FormQE.UserQueryCur = UserQueryCur;
            FormQE.IsNew        = false;
            FormQE.ShowDialog();
            FillList();
        }
コード例 #2
0
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            FormQueryEdit FormQE = new FormQueryEdit();

            FormQE.IsNew        = true;
            FormQE.UserQueryCur = new UserQuery();
            FormQE.ShowDialog();
            if (FormQE.DialogResult == DialogResult.OK)
            {
                FillList();
            }
        }
コード例 #3
0
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            //button is disabled for users without Query Admin permission.
            FormQueryEdit FormQE = new FormQueryEdit();

            FormQE.IsNew        = true;
            FormQE.UserQueryCur = new UserQuery();
            FormQE.ShowDialog();
            if (FormQE.DialogResult == DialogResult.OK)
            {
                FillGrid();
            }
        }
コード例 #4
0
ファイル: FormQueryFavorites.cs プロジェクト: nampn/ODental
        private void butEdit_Click(object sender, EventArgs e)
        {
            if (list2.SelectedIndex == -1)
            {
                MsgBox.Show(this, "Please select an item first.");
                return;
            }
            FormQueryEdit FormQE = new FormQueryEdit();

            FormQE.UserQueryCur = UserQueryCur;
            FormQE.IsNew        = false;
            FormQE.ShowDialog();
            FillList();
        }
コード例 #5
0
        private void butEdit_Click(object sender, EventArgs e)
        {
            //button is disabled for users without Query Admin permission.
            if (UserQueryCur == null)
            {
                MsgBox.Show(this, "Please select an item first.");
                return;
            }
            FormQueryEdit FormQE = new FormQueryEdit();

            FormQE.UserQueryCur = UserQueryCur;
            FormQE.IsNew        = false;
            FormQE.ShowDialog();
            FillGrid();
        }
コード例 #6
0
ファイル: FormQuery.cs プロジェクト: romeroyonatan/opendental
		private void butAdd_Click(object sender, System.EventArgs e) {
			FormQueryEdit FormQE=new FormQueryEdit();
			FormQE.UserQueryCur=new UserQuery();
			FormQE.UserQueryCur.QueryText=textQuery.Text;
			FormQE.IsNew=true;
			FormQE.ShowDialog();
			if(FormQE.DialogResult==DialogResult.OK){
				textQuery.Text=FormQE.UserQueryCur.QueryText;
				grid2.CaptionText=FormQE.UserQueryCur.Description;
			}
		}
コード例 #7
0
		private void butAdd_Click(object sender, System.EventArgs e) {
			FormQueryEdit FormQE=new FormQueryEdit();
			FormQE.IsNew=true;
			FormQE.UserQueryCur=new UserQuery();
			FormQE.ShowDialog();
			if(FormQE.DialogResult==DialogResult.OK){
				FillList();
			}
		}
コード例 #8
0
		private void butEdit_Click(object sender,EventArgs e) {
			if(list2.SelectedIndex==-1) {
				MsgBox.Show(this,"Please select an item first.");
				return;
			}
			FormQueryEdit FormQE=new FormQueryEdit();
			FormQE.UserQueryCur=UserQueryCur;
			FormQE.IsNew=false;
			FormQE.ShowDialog();
			FillList();
		}