private void on_edit_selected_jump_clicked(object o, EventArgs args) { notebooks_change(0); Log.WriteLine("Edit selected jump (normal)"); //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 (myTreeViewJumps.EventSelectedID > 0) { //3.- obtain the data of the selected jump Jump myJump = SqliteJump.SelectJumpData( myTreeViewJumps.EventSelectedID, false ); eventOldPerson = myJump.PersonID; //4.- edit this jump editJumpWin = EditJumpWindow.Show(app1, myJump, weightPercentPreferred, prefsDigitsNumber); editJumpWin.Button_accept.Clicked += new EventHandler(on_edit_selected_jump_accepted); } }
protected override void on_delete_event(object o, DeleteEventArgs args) { EditJumpWindowBox.edit_event.Hide(); EditJumpWindowBox = null; }
protected override void hideWindow() { EditJumpWindowBox.edit_event.Hide(); EditJumpWindowBox = null; }
protected override void on_button_cancel_clicked(object o, EventArgs args) { EditJumpWindowBox.edit_event.Hide(); EditJumpWindowBox = null; }
public static EditJumpWindow Show(Gtk.Window parent, Event myEvent, bool weightPercentPreferred, int pDN) { if (EditJumpWindowBox == null) { EditJumpWindowBox = new EditJumpWindow (parent); } EditJumpWindowBox.weightPercentPreferred = weightPercentPreferred; EditJumpWindowBox.personWeight = SqlitePersonSession.SelectAttribute( false, Convert.ToInt32(myEvent.PersonID), Convert.ToInt32(myEvent.SessionID), Constants.Weight); EditJumpWindowBox.pDN = pDN; EditJumpWindowBox.sessionID = myEvent.SessionID; EditJumpWindowBox.initializeValues(); EditJumpWindowBox.fillDialog (myEvent); if(myEvent.Type == "slCMJleft" || myEvent.Type == "slCMJright") EditJumpWindowBox.fillSingleLeg (myEvent.Description); EditJumpWindowBox.edit_event.Show (); return EditJumpWindowBox; }