Exemplo 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();
        }
Exemplo 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();
		}