Beispiel #1
0
    static new public EditPulseWindow Show(Gtk.Window parent, Event myEvent, int pDN)
    {
        if (EditPulseWindowBox == null)
        {
            EditPulseWindowBox = new EditPulseWindow(parent);
        }

        EditPulseWindowBox.pDN = pDN;

        EditPulseWindowBox.initializeValues();

        EditPulseWindowBox.fillDialog(myEvent);

        EditPulseWindowBox.edit_event.Show();

        return(EditPulseWindowBox);
    }
Beispiel #2
0
    private void on_edit_selected_pulse_clicked(object o, EventArgs args)
    {
        notebooks_change(5);
        Log.WriteLine("Edit selected pulse");
        //1.- check that there's a line selected
        //2.- check that this line is a event and not a person
        if (myTreeViewPulses.EventSelectedID > 0) {
            //3.- obtain the data of the selected event
            Pulse myPulse = SqlitePulse.SelectPulseData( myTreeViewPulses.EventSelectedID, false );
            eventOldPerson = myPulse.PersonID;

            //4.- edit this event
            editPulseWin = EditPulseWindow.Show(app1, myPulse, prefsDigitsNumber);
            editPulseWin.Button_accept.Clicked += new EventHandler(on_edit_selected_pulse_accepted);
        }
    }
Beispiel #3
0
 protected override void on_delete_event(object o, DeleteEventArgs args)
 {
     EditPulseWindowBox.edit_event.Hide();
     EditPulseWindowBox = null;
 }
Beispiel #4
0
 protected override void hideWindow()
 {
     EditPulseWindowBox.edit_event.Hide();
     EditPulseWindowBox = null;
 }
Beispiel #5
0
 protected override void on_button_cancel_clicked(object o, EventArgs args)
 {
     EditPulseWindowBox.edit_event.Hide();
     EditPulseWindowBox = null;
 }
Beispiel #6
0
 protected override void on_delete_event(object o, DeleteEventArgs args)
 {
     EditPulseWindowBox.edit_event.Hide();
     EditPulseWindowBox = null;
 }
Beispiel #7
0
 protected override void on_button_cancel_clicked(object o, EventArgs args)
 {
     EditPulseWindowBox.edit_event.Hide();
     EditPulseWindowBox = null;
 }
Beispiel #8
0
 protected override void hideWindow()
 {
     EditPulseWindowBox.edit_event.Hide();
     EditPulseWindowBox = null;
 }
Beispiel #9
0
    public static new EditPulseWindow Show(Gtk.Window parent, Event myEvent, int pDN)
    {
        if (EditPulseWindowBox == null) {
            EditPulseWindowBox = new EditPulseWindow (parent);
        }

        EditPulseWindowBox.pDN = pDN;

        EditPulseWindowBox.initializeValues();

        EditPulseWindowBox.fillDialog (myEvent);

        EditPulseWindowBox.edit_event.Show ();

        return EditPulseWindowBox;
    }