Inheritance: EditJumpWindow
Ejemplo n.º 1
0
    public static new EditJumpRjWindow Show(Gtk.Window parent, Event myEvent, bool weightPercentPreferred, int pDN)
    {
        if (EditJumpRjWindowBox == null) {
            EditJumpRjWindowBox = new EditJumpRjWindow (parent);
        }

        EditJumpRjWindowBox.weightPercentPreferred = weightPercentPreferred;
        EditJumpRjWindowBox.personWeight = SqlitePersonSession.SelectAttribute(
                false, myEvent.PersonID, myEvent.SessionID, Constants.Weight);

        EditJumpRjWindowBox.pDN = pDN;

        EditJumpRjWindowBox.sessionID = myEvent.SessionID;

        EditJumpRjWindowBox.initializeValues();

        EditJumpRjWindowBox.fillDialog (myEvent);

        EditJumpRjWindowBox.edit_event.Show ();

        return EditJumpRjWindowBox;
    }
Ejemplo n.º 2
0
    private void on_edit_selected_jump_rj_clicked(object o, EventArgs args)
    {
        notebooks_change(1);
        Log.WriteLine("Edit selected jump (RJ)");
        //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 (myTreeViewJumpsRj.EventSelectedID > 0) {
            //3.- obtain the data of the selected jump
            JumpRj myJump = SqliteJumpRj.SelectJumpData( "jumpRj", myTreeViewJumpsRj.EventSelectedID, false );
            eventOldPerson = myJump.PersonID;

            //4.- edit this jump
            editJumpRjWin = EditJumpRjWindow.Show(app1, myJump, weightPercentPreferred, prefsDigitsNumber);
            editJumpRjWin.Button_accept.Clicked += new EventHandler(on_edit_selected_jump_rj_accepted);
        }
    }
Ejemplo n.º 3
0
 protected override void on_delete_event(object o, DeleteEventArgs args)
 {
     EditJumpRjWindowBox.edit_event.Hide();
     EditJumpRjWindowBox = null;
 }
Ejemplo n.º 4
0
 protected override void on_button_cancel_clicked(object o, EventArgs args)
 {
     EditJumpRjWindowBox.edit_event.Hide();
     EditJumpRjWindowBox = null;
 }
Ejemplo n.º 5
0
 protected override void hideWindow()
 {
     EditJumpRjWindowBox.edit_event.Hide();
     EditJumpRjWindowBox = null;
 }