private void butAdd_Click(object sender,EventArgs e) { FormCentralConnectionEdit formC = new FormCentralConnectionEdit(); CentralConnection cc=new CentralConnection(); cc.IsNew=true;; formC.CentralConnectionCur=cc; formC.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { FormCentralConnectionEdit formC = new FormCentralConnectionEdit(); formC.CentralConnectionCur = ConnList[e.Row]; formC.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { FormCentralConnectionEdit FormCCE = new FormCentralConnectionEdit(); FormCCE.CentralConnectionCur = (CentralConnection)gridMain.Rows[e.Row].Tag; FormCCE.ShowDialog(); FillGrid(); }
private void butAdd_Click(object sender, EventArgs e) { FormCentralConnectionEdit formC = new FormCentralConnectionEdit(); CentralConnection cc = new CentralConnection(); cc.IsNew = true;; formC.CentralConnectionCur = cc; formC.ShowDialog(); FillGrid(); }
private void butAdd_Click(object sender, EventArgs e) { CentralConnection conn = new CentralConnection(); conn.IsNew = true; FormCentralConnectionEdit FormCCS = new FormCentralConnectionEdit(); FormCCS.CentralConnectionCur = conn; if (FormCCS.ShowDialog() == DialogResult.OK) //Will insert conn on OK. { _listConns = CentralConnections.GetConnections(); FillGrid(); } }
private void butAdd_Click(object sender, EventArgs e) { CentralConnection conn = new CentralConnection(); conn.IsNew = true; FormCentralConnectionEdit FormCCS = new FormCentralConnectionEdit(); FormCCS.CentralConnectionCur = conn; if (FormCCS.ShowDialog() == DialogResult.OK) //Will insert conn on OK. { ListConns.Add(FormCCS.CentralConnectionCur); //IsNew will be false if inserted } FillGrid(); //Refreshing the grid will show any new connections added. }
private void butEdit_Click(object sender, EventArgs e) { if (gridMain.SelectedIndices.Length == 0) { MsgBox.Show(this, "Please select a connection to edit first."); return; } FormCentralConnectionEdit FormCCE = new FormCentralConnectionEdit(); FormCCE.CentralConnectionCur = (CentralConnection)gridMain.Rows[gridMain.SelectedIndices[0]].Tag; //No support for editing multiple. if (FormCCE.ShowDialog() == DialogResult.OK) { _listConns = CentralConnections.GetConnections(); FillGrid(); } }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { if (IsSelectionMode) { ListConnsSelected = new List <CentralConnection>(); ListConnsSelected.Add(_listConnsShowing[e.Row]); DialogResult = DialogResult.OK; return; } FormCentralConnectionEdit FormCCE = new FormCentralConnectionEdit(); FormCCE.CentralConnectionCur = _listConnsShowing[e.Row]; FormCCE.ShowDialog(); _listConnsAll = CentralConnections.GetConnections(); FillGrid(); }
private void butAdd_Click(object sender, EventArgs e) { CentralConnection conn = new CentralConnection(); conn.IsNew = true; FormCentralConnectionEdit FormCCE = new FormCentralConnectionEdit(); FormCCE.CentralConnectionCur = conn; FormCCE.LastItemOrder = 0; if (_listConnsAll.Count > 0) { FormCCE.LastItemOrder = _listConnsAll[_listConnsAll.Count - 1].ItemOrder; } FormCCE.ShowDialog(); _listConnsAll = CentralConnections.GetConnections(); FillGrid(); }
private void butAdd_Click(object sender,EventArgs e) { CentralConnection conn=new CentralConnection(); conn.IsNew=true; FormCentralConnectionEdit FormCCS=new FormCentralConnectionEdit(); FormCCS.CentralConnectionCur=conn; FormCCS.ShowDialog();//Will insert conn on OK. FillGrid();//Refreshing the grid will show any new connections added. }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormCentralConnectionEdit FormCCE=new FormCentralConnectionEdit(); FormCCE.CentralConnectionCur=(CentralConnection)gridMain.Rows[e.Row].Tag; FormCCE.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormCentralConnectionEdit formC = new FormCentralConnectionEdit(); formC.CentralConnectionCur=ConnList[e.Row]; formC.ShowDialog(); FillGrid(); }