示例#1
0
        private void gridMain_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            FormScreenGroupEdit FormSG = new FormScreenGroupEdit(_listScreenGroups[gridMain.GetSelectedIndex()]);

            FormSG.ShowDialog();
            FillGrid();
        }
示例#2
0
        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();
        }
示例#3
0
        /*
         * 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();
        }
示例#4
0
		/*
		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();
		}
示例#5
0
		private void gridMain_CellDoubleClick(object sender,UI.ODGridClickEventArgs e) {
			FormScreenGroupEdit FormSG=new FormScreenGroupEdit();
			FormSG.ScreenGroupCur=ScreenGroupList[gridMain.GetSelectedIndex()];
			FormSG.ShowDialog();
			FillGrid();
		}