protected void OnButtonEditMeterClicked(object sender, EventArgs e) { int itemid = Meters[notebookMeters.CurrentPage].ID; Meter winMeter = new Meter(false); winMeter.Fill(itemid); winMeter.Show(); ResponseType result = (ResponseType)winMeter.Run(); winMeter.Destroy(); if(result == ResponseType.Ok) UpdateMeters(); }
protected void OnButtonAddMeterClicked(object sender, EventArgs e) { Meter WinMeter = new Meter (true); WinMeter.SetPlace (type_id, PlaceNumber); WinMeter.Show (); ResponseType result = (ResponseType) WinMeter.Run (); WinMeter.Destroy (); if(result == ResponseType.Ok) UpdateMeters (); }