private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { InsPlan plan = InsPlans.GetPlan(PIn.Long(table.Rows[e.Row]["PlanNum"].ToString()), null); if (plan == null || plan.PlanNum == 0) { MsgBox.Show(this, "Insurance plan selected no longer exists."); FillGrid(); return; } if (IsSelectMode) { SelectedPlan = plan.Copy(); DialogResult = DialogResult.OK; return; } FormInsPlan FormIP = new FormInsPlan(plan, null, null); FormIP.ShowDialog(); if (FormIP.DialogResult != DialogResult.OK) { return; } FillGrid(); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { FormInsPlan FormIP = new FormInsPlan(PlanList[e.Row], null); FormIP.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { InsPlan plan = InsPlans.GetPlan(SubList[e.Row].PlanNum, PlanList); FormInsPlan FormIP = new FormInsPlan(plan, null, SubList[e.Row]); FormIP.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { InsPlan PlanCur = ListAll[e.Row].Copy(); FormInsPlan FormIP = new FormInsPlan(PlanCur, null); FormIP.IsForAll = true; FormIP.IsReadOnly = true; FormIP.ShowDialog(); //just for viewing }
private void butViewInsPlanFrom_Click(object sender, EventArgs e) { if (_fromInsPlan == null || InsPlans.GetPlan(_fromInsPlan.PlanNum, new List <InsPlan>()) == null) { MsgBox.Show(this, "Valid insurance plan not selected.\r\nPlease select a valid insurance plan using the picker button."); return; } FormInsPlan formIP = new FormInsPlan(_fromInsPlan, null, null); formIP.ShowDialog(); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { InsPlan PlanCur = ListAll[e.Row].Copy(); FormInsPlan FormIP = new FormInsPlan(PlanCur, null, null); //FormIP.IsForAll=true; //FormIP.IsReadOnly=true; FormIP.ShowDialog(); if (FormIP.DialogResult == DialogResult.OK) { FillGrid(); } }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { InsPlan plan = InsPlans.GetPlan(PIn.Long(table.Rows[e.Row]["PlanNum"].ToString()), null); if (IsSelectMode) { SelectedPlan = plan.Copy(); DialogResult = DialogResult.OK; return; } FormInsPlan FormIP = new FormInsPlan(plan, null, null); FormIP.ShowDialog(); if (FormIP.DialogResult != DialogResult.OK) { return; } FillGrid(); }