コード例 #1
0
ファイル: run.cs プロジェクト: GNOME/chronojump
 protected override void on_delete_event(object o, DeleteEventArgs args)
 {
     EditRunIntervalWindowBox.edit_event.Hide();
     EditRunIntervalWindowBox = null;
 }
コード例 #2
0
ファイル: run.cs プロジェクト: GNOME/chronojump
 protected override void on_button_cancel_clicked(object o, EventArgs args)
 {
     EditRunIntervalWindowBox.edit_event.Hide();
     EditRunIntervalWindowBox = null;
 }
コード例 #3
0
ファイル: run.cs プロジェクト: GNOME/chronojump
    public static new EditRunIntervalWindow Show(Gtk.Window parent, Event myEvent, int pDN, bool metersSecondsPreferred)
    {
        if (EditRunIntervalWindowBox == null) {
            EditRunIntervalWindowBox = new EditRunIntervalWindow (parent);
        }

        EditRunIntervalWindowBox.metersSecondsPreferred = metersSecondsPreferred;
        EditRunIntervalWindowBox.pDN = pDN;

        EditRunIntervalWindowBox.initializeValues();

        if(myEvent.Type == "MTGUG") {
            EditRunIntervalWindowBox.notebook_mtgug.Show();
            EditRunIntervalWindowBox.entry_description.Sensitive = false;
            EditRunIntervalWindowBox.fill_mtgug(myEvent.Description);
        } else {
            EditRunIntervalWindowBox.notebook_mtgug.Hide();
            EditRunIntervalWindowBox.entry_description.Sensitive = true;
        }

        EditRunIntervalWindowBox.fillDialog (myEvent);

        EditRunIntervalWindowBox.edit_event.Show ();

        return EditRunIntervalWindowBox;
    }
コード例 #4
0
ファイル: run.cs プロジェクト: GNOME/chronojump
 protected override void hideWindow()
 {
     EditRunIntervalWindowBox.edit_event.Hide();
     EditRunIntervalWindowBox = null;
 }
コード例 #5
0
    private void on_edit_selected_run_interval_clicked(object o, EventArgs args)
    {
        notebooks_change(3);
        Log.WriteLine("Edit selected run interval");
        //1.- check that there's a line selected
        //2.- check that this line is a run and not a person (check also if it's not a individual subrun, the pass the parent run)
        if (myTreeViewRunsInterval.EventSelectedID > 0) {
            //3.- obtain the data of the selected run
            RunInterval myRun = SqliteRunInterval.SelectRunData( Constants.RunIntervalTable, myTreeViewRunsInterval.EventSelectedID, false );
            eventOldPerson = myRun.PersonID;

            //4.- edit this run
            editRunIntervalWin = EditRunIntervalWindow.Show(app1, myRun, prefsDigitsNumber, metersSecondsPreferred);
            editRunIntervalWin.Button_accept.Clicked += new EventHandler(on_edit_selected_run_interval_accepted);
        }
    }