private void gridMain_CellDoubleClick(object sender, UI.ODGridClickEventArgs e) { FormScreenGroupEdit FormSG = new FormScreenGroupEdit(_listScreenGroups[gridMain.GetSelectedIndex()]); FormSG.ShowDialog(); FillGrid(); }
private void butAdd_Click(object sender, System.EventArgs e) { ScreenGroup screenGroup = new ScreenGroup(); if (_listScreenGroups.Count != 0) { screenGroup = _listScreenGroups[_listScreenGroups.Count - 1]; //'remembers' the last entry } screenGroup.SGDate = DateTime.Today; //except date will be today screenGroup.IsNew = true; FormScreenGroupEdit FormSG = new FormScreenGroupEdit(screenGroup); FormSG.ShowDialog(); FillGrid(); }
/* * private void menuItemSetup_Click(object sender,EventArgs e) { * FormScreenSetup FormSS=new FormScreenSetup(); * FormSS.ShowDialog(); * } */ private void butAdd_Click(object sender, System.EventArgs e) { FormScreenGroupEdit FormSG = new FormScreenGroupEdit(); FormSG.IsNew = true; //ScreenGroups.Cur=new ScreenGroup(); if (ScreenGroupList.Count == 0) { FormSG.ScreenGroupCur = new ScreenGroup(); } else { FormSG.ScreenGroupCur = ScreenGroupList[ScreenGroupList.Count - 1]; //'remembers' the last entry } FormSG.ScreenGroupCur.SGDate = DateTime.Today; //except date will be today FormSG.ShowDialog(); //if(FormSG.DialogResult!=DialogResult.OK){ // return; //} FillGrid(); }
/* private void menuItemSetup_Click(object sender,EventArgs e) { FormScreenSetup FormSS=new FormScreenSetup(); FormSS.ShowDialog(); } */ private void butAdd_Click(object sender, System.EventArgs e) { FormScreenGroupEdit FormSG=new FormScreenGroupEdit(); FormSG.IsNew=true; //ScreenGroups.Cur=new ScreenGroup(); if(ScreenGroupList.Count==0){ FormSG.ScreenGroupCur=new ScreenGroup(); } else{ FormSG.ScreenGroupCur=ScreenGroupList[ScreenGroupList.Count-1];//'remembers' the last entry } FormSG.ScreenGroupCur.SGDate=DateTime.Today;//except date will be today FormSG.ShowDialog(); //if(FormSG.DialogResult!=DialogResult.OK){ // return; //} FillGrid(); }
private void gridMain_CellDoubleClick(object sender,UI.ODGridClickEventArgs e) { FormScreenGroupEdit FormSG=new FormScreenGroupEdit(); FormSG.ScreenGroupCur=ScreenGroupList[gridMain.GetSelectedIndex()]; FormSG.ShowDialog(); FillGrid(); }