private void list2_DoubleClick(object sender, System.EventArgs e) { FormQueryEdit FormQE = new FormQueryEdit(); FormQE.UserQueryCur = UserQueryCur; FormQE.IsNew = false; FormQE.ShowDialog(); FillList(); }
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(); } }
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(); } }
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(); }
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(); }
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; } }
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(); } }
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(); }