Esempio n. 1
0
        private void listMain_DoubleClick(object sender, System.EventArgs e)
        {
            FormScreenGroup FormSG = new FormScreenGroup();

            FormSG.ScreenGroupCur = ScreenGroups.List[listMain.SelectedIndices[0]];
            FormSG.ShowDialog();
            //if(FormSG.DialogResult!=DialogResult.OK){
            //	return;
            //}
            FillGrid();
        }
Esempio n. 2
0
 private void butAdd_Click(object sender, System.EventArgs e)
 {
     FormScreenGroup FormSG=new FormScreenGroup();
     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();
 }
Esempio n. 3
0
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            FormScreenGroup FormSG = new FormScreenGroup();

            FormSG.IsNew = true;
            //ScreenGroups.Cur=new ScreenGroup();
            if (ScreenGroups.List.Length == 0)
            {
                FormSG.ScreenGroupCur = new ScreenGroup();
            }
            else
            {
                FormSG.ScreenGroupCur = ScreenGroups.List[ScreenGroups.List.Length - 1]; //'remembers' the last entry
            }
            FormSG.ScreenGroupCur.SGDate = DateTime.Today;                               //except date will be today
            FormSG.ShowDialog();
            //if(FormSG.DialogResult!=DialogResult.OK){
            //	return;
            //}
            FillGrid();
        }
Esempio n. 4
0
 private void listMain_DoubleClick(object sender, System.EventArgs e)
 {
     FormScreenGroup FormSG=new FormScreenGroup();
     FormSG.ScreenGroupCur=ScreenGroupList[listMain.SelectedIndices[0]];
     FormSG.ShowDialog();
     //if(FormSG.DialogResult!=DialogResult.OK){
     //	return;
     //}
     FillGrid();
 }