SaveToSQL() public method

public SaveToSQL ( ) : bool
return bool
Esempio n. 1
0
    private void on_button_save_clicked(object o, EventArgs args)
    {
        ExecuteAutoSQL eaSQL = new ExecuteAutoSQL(-1, entry_save_name.Text.ToString(), mode, entry_save_description.Text.ToString(),
                                                  getTrComboInts(treeviewSerie1Array), getTrComboInts(treeviewSerie2Array), getTrComboInts(treeviewSerie3Array));
        bool saved = eaSQL.SaveToSQL();

        if (saved)
        {
            new DialogMessage(Constants.MessageTypes.INFO, Catalog.GetString("Saved"));
        }
        else
        {
            new DialogMessage(Constants.MessageTypes.WARNING,
                              String.Format(Catalog.GetString("Sorry, this sequence '{0}' already exists in database"), eaSQL.name));
        }
    }
Esempio n. 2
0
    private void on_button_save_clicked(object o, EventArgs args)
    {
        ExecuteAutoSQL eaSQL = new ExecuteAutoSQL(-1, entry_save_name.Text.ToString(), mode, entry_save_description.Text.ToString(),
                getTrComboInts(treeviewSerie1Array), getTrComboInts(treeviewSerie2Array), getTrComboInts(treeviewSerie3Array));
        bool saved = eaSQL.SaveToSQL();

        if(saved)
            new DialogMessage(Constants.MessageTypes.INFO, Catalog.GetString("Saved"));
        else
            new DialogMessage(Constants.MessageTypes.WARNING,
                    String.Format(Catalog.GetString("Sorry, this sequence '{0}' already exists in database"), eaSQL.name));
    }