Ejemplo n.º 1
0
        private void list2_DoubleClick(object sender, System.EventArgs e)
        {
            FormQueryEdit FormQE = new FormQueryEdit();

            FormQE.UserQueryCur = UserQueryCur;
            FormQE.IsNew        = false;
            FormQE.ShowDialog();
            FillList();
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 4
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();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 6
0
		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;
			}
		}
Ejemplo n.º 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();
			}
		}
Ejemplo n.º 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();
		}