Esempio n. 1
0
        private void butAddPhoneGraphEntry_Click(object sender, EventArgs e)
        {
            FormPhoneGraphEdit FormPGE = new FormPhoneGraphEdit(PedCur.EmployeeNum);

            FormPGE.PhoneGraphCur       = new PhoneGraph();
            FormPGE.PhoneGraphCur.IsNew = true;
            if (FormPGE.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            FillGrid();
        }
Esempio n. 2
0
        private void gridGraph_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            //edit this entry
            if (gridGraph.Rows[e.Row].Tag == null || !(gridGraph.Rows[e.Row].Tag is PhoneGraph))
            {
                return;
            }
            PhoneGraph         phoneGraph = (PhoneGraph)gridGraph.Rows[e.Row].Tag;
            FormPhoneGraphEdit FormPGE    = new FormPhoneGraphEdit(PedCur.EmployeeNum);

            FormPGE.PhoneGraphCur = phoneGraph;
            FormPGE.ShowDialog();
            FillGrid();
        }
		private void butAddPhoneGraphEntry_Click(object sender,EventArgs e) {
			FormPhoneGraphEdit FormPGE=new FormPhoneGraphEdit(PedCur.EmployeeNum);
			FormPGE.PhoneGraphCur=new PhoneGraph();
			FormPGE.PhoneGraphCur.IsNew=true;
			if(FormPGE.ShowDialog()!=DialogResult.OK) {
				return;
			}
			FillGrid();
		}
		private void gridGraph_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			//edit this entry
			if(gridGraph.Rows[e.Row].Tag==null || !(gridGraph.Rows[e.Row].Tag is PhoneGraph)) {
				return;
			}
			PhoneGraph phoneGraph=(PhoneGraph)gridGraph.Rows[e.Row].Tag;
			FormPhoneGraphEdit FormPGE=new FormPhoneGraphEdit(PedCur.EmployeeNum);
			FormPGE.PhoneGraphCur=phoneGraph;
			FormPGE.ShowDialog();
			FillGrid();
		}