public void InfoMessage(string message, object parent = null) { if (parent == null) { parent = mainWindow as Widget; } MessagesHelpers.InfoMessage(parent as Widget, message); }
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")); } } }
public void InfoMessage(string message, object parent = null) { MessagesHelpers.InfoMessage(GetParentWidget(parent), message); }