static new public EditMultiChronopicWindow Show(Gtk.Window parent, Event myEvent, int pDN) { if (EditMultiChronopicWindowBox == null) { EditMultiChronopicWindowBox = new EditMultiChronopicWindow(parent); } EditMultiChronopicWindowBox.pDN = pDN; EditMultiChronopicWindowBox.initializeValues(); if (myEvent.Type == Constants.RunAnalysisName) { EditMultiChronopicWindowBox.showDistance = true; } else { EditMultiChronopicWindowBox.showDistance = false; EditMultiChronopicWindowBox.entryDistance = ""; //instead of the "0" in gui/event.cs } EditMultiChronopicWindowBox.fillDialog(myEvent); EditMultiChronopicWindowBox.edit_event.Show(); return(EditMultiChronopicWindowBox); }
protected override void hideWindow() { EditMultiChronopicWindowBox.edit_event.Hide(); EditMultiChronopicWindowBox = null; }
protected override void on_delete_event(object o, DeleteEventArgs args) { EditMultiChronopicWindowBox.edit_event.Hide(); EditMultiChronopicWindowBox = null; }
protected override void on_button_cancel_clicked(object o, EventArgs args) { EditMultiChronopicWindowBox.edit_event.Hide(); EditMultiChronopicWindowBox = null; }
private void on_edit_selected_multi_chronopic_clicked(object o, EventArgs args) { notebooks_change(6); Log.WriteLine("Edit selected multi chronopic"); //1.- check that there's a line selected //2.- check that this line is a jump and not a person (check also if it's not a individual RJ, the pass the parent RJ) if (myTreeViewMultiChronopic.EventSelectedID > 0) { //3.- obtain the data of the selected test MultiChronopic mc = SqliteMultiChronopic.SelectMultiChronopicData( myTreeViewMultiChronopic.EventSelectedID, false ); eventOldPerson = mc.PersonID; //4.- edit this jump editMultiChronopicWin = EditMultiChronopicWindow.Show(app1, mc, prefsDigitsNumber); editMultiChronopicWin.Button_accept.Clicked += new EventHandler(on_edit_selected_multi_chronopic_accepted); } }
protected override void on_delete_event(object o, DeleteEventArgs args) { EditMultiChronopicWindowBox.edit_event.Hide(); EditMultiChronopicWindowBox = null; }
protected override void on_button_cancel_clicked(object o, EventArgs args) { EditMultiChronopicWindowBox.edit_event.Hide(); EditMultiChronopicWindowBox = null; }
protected override void hideWindow() { EditMultiChronopicWindowBox.edit_event.Hide(); EditMultiChronopicWindowBox = null; }
public static new EditMultiChronopicWindow Show(Gtk.Window parent, Event myEvent, int pDN) { if (EditMultiChronopicWindowBox == null) { EditMultiChronopicWindowBox = new EditMultiChronopicWindow (parent); } EditMultiChronopicWindowBox.pDN = pDN; EditMultiChronopicWindowBox.initializeValues(); if(myEvent.Type == Constants.RunAnalysisName) EditMultiChronopicWindowBox.showDistance = true; else { EditMultiChronopicWindowBox.showDistance = false; EditMultiChronopicWindowBox.entryDistance = ""; //instead of the "0" in gui/event.cs } EditMultiChronopicWindowBox.fillDialog (myEvent); EditMultiChronopicWindowBox.edit_event.Show (); return EditMultiChronopicWindowBox; }