Ejemplo n.º 1
0
 void on_delete_event(object o, DeleteEventArgs args)
 {
     PersonAddMultipleWindowBox.person_multiple_infinite.Hide();
     PersonAddMultipleWindowBox = null;
 }
Ejemplo n.º 2
0
 private void on_person_add_multiple_prepared(object o, EventArgs args)
 {
     genericWin.Button_accept.Clicked -= new EventHandler(on_person_add_multiple_prepared);
     personAddMultipleWin = PersonAddMultipleWindow.Show(app1, currentSession, genericWin.SpinIntSelected);
     personAddMultipleWin.Button_accept.Clicked += new EventHandler(on_person_add_multiple_accepted);
 }
Ejemplo n.º 3
0
 void on_button_cancel_clicked(object o, EventArgs args)
 {
     PersonAddMultipleWindowBox.person_multiple_infinite.Hide();
     PersonAddMultipleWindowBox = null;
 }
Ejemplo n.º 4
0
    void on_button_accept_clicked(object o, EventArgs args)
    {
        errorExistsString = "";
        errorWeightString = "";
        errorRepeatedEntryString = "";
        personsCreatedCount = 0;

        Sqlite.Open();
        for (int i = 0; i < rows; i ++)
            checkEntries(i, ((Gtk.Entry)entries[i]).Text.ToString(), (int) ((Gtk.SpinButton)spins[i]).Value);
        Sqlite.Close();

        checkAllEntriesAreDifferent();

        string combinedErrorString = "";
        combinedErrorString = readErrorStrings();

        if (combinedErrorString.Length > 0) {
            ErrorWindow.Show(combinedErrorString);
        } else {
            processAllNonBlankRows();

            PersonAddMultipleWindowBox.person_multiple_infinite.Hide();
            PersonAddMultipleWindowBox = null;
        }
    }
Ejemplo n.º 5
0
    public static PersonAddMultipleWindow Show(Gtk.Window parent, Session currentSession)
    {
        if (PersonAddMultipleWindowBox == null) {
            PersonAddMultipleWindowBox = new PersonAddMultipleWindow (parent, currentSession);
        }

        PersonAddMultipleWindowBox.putNonStandardIcons ();
        PersonAddMultipleWindowBox.tablesVisibility ();

        PersonAddMultipleWindowBox.created_table = false;

        PersonAddMultipleWindowBox.person_multiple_infinite.Show ();

        return PersonAddMultipleWindowBox;
    }
Ejemplo n.º 6
0
 //show spinbutton window asking for how many people to create
 private void on_person_add_multiple_clicked(object o, EventArgs args)
 {
     personAddMultipleWin = PersonAddMultipleWindow.Show(app1, currentSession);
     personAddMultipleWin.Button_accept.Clicked += new EventHandler(on_person_add_multiple_accepted);
 }
Ejemplo n.º 7
0
    public static PersonAddMultipleWindow Show(Gtk.Window parent, Session currentSession, int rows)
    {
        if (PersonAddMultipleWindowBox == null) {
            PersonAddMultipleWindowBox = new PersonAddMultipleWindow (parent, currentSession);
        }
        PersonAddMultipleWindowBox.rows = rows;
        PersonAddMultipleWindowBox.create ();

        PersonAddMultipleWindowBox.person_multiple_infinite.Show ();

        return PersonAddMultipleWindowBox;
    }