Exemple #1
0
 public void InfoMessage(string message, object parent = null)
 {
     if (parent == null)
     {
         parent = mainWindow as Widget;
     }
     MessagesHelpers.InfoMessage(parent as Widget, message);
 }
Exemple #2
0
        protected void OnBackupbuttonClicked(object sender, System.EventArgs e)
        {
            IDatabase db = SelectedDB;

            if (db != null)
            {
                if (db.Backup())
                {
                    MessagesHelpers.InfoMessage(this, Catalog.GetString("Backup successfull"));
                }
                else
                {
                    MessagesHelpers.ErrorMessage(this, Catalog.GetString("Could not create backup"));
                }
            }
        }
Exemple #3
0
 public void InfoMessage(string message, object parent = null)
 {
     MessagesHelpers.InfoMessage(GetParentWidget(parent), message);
 }