static public ConfirmWindowJumpRun Show(string text1, string question) { if (ConfirmWindowJumpRunBox == null) { ConfirmWindowJumpRunBox = new ConfirmWindowJumpRun(text1, question); } ConfirmWindowJumpRunBox.confirm_window.Show(); return(ConfirmWindowJumpRunBox); }
protected void on_delete_selected_jump_delete_event(object o, DeleteEventArgs args) { ConfirmWindowJumpRunBox.confirm_window.Hide(); ConfirmWindowJumpRunBox = null; }
protected void on_button_cancel_clicked(object o, EventArgs args) { ConfirmWindowJumpRunBox.confirm_window.Hide(); ConfirmWindowJumpRunBox = null; }
public static ConfirmWindowJumpRun Show(string text1, string question) { if (ConfirmWindowJumpRunBox == null) { ConfirmWindowJumpRunBox = new ConfirmWindowJumpRun(text1, question); } ConfirmWindowJumpRunBox.confirm_window.Show (); return ConfirmWindowJumpRunBox; }
private void on_delete_selected_run_interval_clicked(object o, EventArgs args) { notebooks_change(3); Log.WriteLine("delete this 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 a subrun, pass the parent run) if (myTreeViewRunsInterval.EventSelectedID > 0) { //3.- display confirmwindow of deletion if (askDeletion) { confirmWinJumpRun = ConfirmWindowJumpRun.Show( Catalog.GetString("Do you want to delete this run?"), Catalog.GetString("Attention: Deleting a Intervallic subrun will delete the whole run")); confirmWinJumpRun.Button_accept.Clicked += new EventHandler(on_delete_selected_run_interval_accepted); } else { on_delete_selected_run_interval_accepted(o, args); } } }
private void on_delete_selected_run_clicked(object o, EventArgs args) { notebooks_change(2); Log.WriteLine("delete this run (normal)"); //1.- check that there's a line selected //2.- check that this line is a jump and not a person if (myTreeViewRuns.EventSelectedID > 0) { //3.- display confirmwindow of deletion if (askDeletion) { confirmWinJumpRun = ConfirmWindowJumpRun.Show(Catalog.GetString("Do you want to delete this run?"), ""); confirmWinJumpRun.Button_accept.Clicked += new EventHandler(on_delete_selected_run_accepted); } else { on_delete_selected_run_accepted(o, args); } } }
private void on_delete_selected_reaction_time_clicked(object o, EventArgs args) { notebooks_change(4); Log.WriteLine("delete this reaction time"); //1.- check that there's a line selected //2.- check that this line is a jump and not a person Log.WriteLine(myTreeViewReactionTimes.EventSelectedID.ToString()); if (myTreeViewReactionTimes.EventSelectedID > 0) { //3.- display confirmwindow of deletion if (askDeletion) { confirmWinJumpRun = ConfirmWindowJumpRun.Show("Do you want to delete this test?", ""); confirmWinJumpRun.Button_accept.Clicked += new EventHandler(on_delete_selected_reaction_time_accepted); } else { on_delete_selected_reaction_time_accepted(o, args); } } }
private void on_delete_selected_multi_chronopic_clicked(object o, EventArgs args) { notebooks_change(6); Log.WriteLine("delete this multi chronopic"); //1.- check that there's a line selected //2.- check that this line is a test and not a person (check also if it's not a individual mc, then pass the parent mc) if (myTreeViewMultiChronopic.EventSelectedID > 0) { //3.- display confirmwindow of deletion if (askDeletion) { confirmWinJumpRun = ConfirmWindowJumpRun.Show( Catalog.GetString("Do you want to delete this test?"), ""); confirmWinJumpRun.Button_accept.Clicked += new EventHandler(on_delete_selected_multi_chronopic_accepted); } else { on_delete_selected_multi_chronopic_accepted(o, args); } } }
private void on_delete_selected_jump_rj_clicked(object o, EventArgs args) { notebooks_change(1); Log.WriteLine("delete this reactive jump"); //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.- display confirmwindow of deletion if (askDeletion) { confirmWinJumpRun = ConfirmWindowJumpRun.Show( Catalog.GetString("Do you want to delete this jump?"), Catalog.GetString("Attention: Deleting a Reactive subjump will delete the whole jump")); confirmWinJumpRun.Button_accept.Clicked += new EventHandler(on_delete_selected_jump_rj_accepted); } else { on_delete_selected_jump_rj_accepted(o, args); } } }
protected void on_button_accept_clicked(object o, EventArgs args) { ConfirmWindowJumpRunBox.confirm_window.Hide(); ConfirmWindowJumpRunBox = null; }
private void on_delete_selected_pulse_clicked(object o, EventArgs args) { //notebooks_change(5); see "notebooks_change sqlite problem" LogB.Information("delete this pulse"); //1.- check that there's a line selected //2.- check that this line is a jump and not a person LogB.Information(myTreeViewPulses.EventSelectedID.ToString()); if (myTreeViewPulses.EventSelectedID > 0) { //3.- display confirmwindow of deletion if (preferences.askDeletion) { confirmWinJumpRun = ConfirmWindowJumpRun.Show("Do you want to delete this test?", ""); confirmWinJumpRun.Button_accept.Clicked += new EventHandler(on_delete_selected_pulse_accepted); } else { on_delete_selected_pulse_accepted(o, args); } } }