Inheritance: EditEventWindow
Exemplo n.º 1
0
 protected override void on_delete_event(object o, DeleteEventArgs args)
 {
     EditRunWindowBox.edit_event.Hide();
     EditRunWindowBox = null;
 }
Exemplo n.º 2
0
 protected override void on_button_cancel_clicked(object o, EventArgs args)
 {
     EditRunWindowBox.edit_event.Hide();
     EditRunWindowBox = null;
 }
Exemplo n.º 3
0
    public static EditRunWindow Show(Gtk.Window parent, Event myEvent, int pDN, bool metersSecondsPreferred)
    {
        if (EditRunWindowBox == null) {
            EditRunWindowBox = new EditRunWindow (parent);
        }

        EditRunWindowBox.metersSecondsPreferred = metersSecondsPreferred;
        EditRunWindowBox.pDN = pDN;

        EditRunWindowBox.initializeValues();

        EditRunWindowBox.fillDialog (myEvent);

        if(myEvent.Type == "Margaria")
            EditRunWindowBox.entry_description.Sensitive = false;
        if(myEvent.Type == "Gesell-DBT") {
            EditRunWindowBox.showMistakes = true;
            EditRunWindowBox.combo_eventType.Sensitive=false;
            EditRunWindowBox.entry_description.Sensitive = false;
            EditRunWindowBox.mistakes = Convert.ToInt32(myEvent.Description);
            EditRunWindowBox.spin_mistakes.Value = Convert.ToInt32(myEvent.Description);
        }

        EditRunWindowBox.edit_event.Show ();

        return EditRunWindowBox;
    }
Exemplo n.º 4
0
 protected override void hideWindow()
 {
     EditRunWindowBox.edit_event.Hide();
     EditRunWindowBox = null;
 }
Exemplo n.º 5
0
    private void on_edit_selected_run_clicked(object o, EventArgs args)
    {
        notebooks_change(2);
        Log.WriteLine("Edit selected run (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 (myTreeViewRuns.EventSelectedID > 0) {
            //3.- obtain the data of the selected run
            Run myRun = SqliteRun.SelectRunData( myTreeViewRuns.EventSelectedID, false );
            myRun.MetersSecondsPreferred = metersSecondsPreferred;
            eventOldPerson = myRun.PersonID;

            //4.- edit this run
            editRunWin = EditRunWindow.Show(app1, myRun, prefsDigitsNumber, metersSecondsPreferred);
            editRunWin.Button_accept.Clicked += new EventHandler(on_edit_selected_run_accepted);
        }
    }