public void OnConfigDialog() { ConfigDialog c = new ConfigDialog(); c.ConfigChanged += new ConfigDialog.ConfigChangedDelegate(ConfigDialog_ConfigChanged); c.Show(); }
protected override ClickAnimation OnClicked(uint button, Gdk.ModifierType mod, double xPercent, double yPercent) { if (button == 1) { if (WeatherPreferences.Locations.Length == 0) { if (Config == null) { Config = new WeatherConfigDialog(); } Config.Show(); } else { ShowPainter(painter); } } return(ClickAnimation.None); }
protected override ClickAnimation OnClicked(uint button, Gdk.ModifierType mod, double xPercent, double yPercent) { if (button == 1) { if (string.IsNullOrEmpty(GMailPreferences.User) || string.IsNullOrEmpty(GMailPreferences.Password)) { if (config == null) { config = new GMailConfigDialog(); } config.Show(); } else { UpdateAttention(false); OpenInbox(); return(ClickAnimation.Bounce); } } return(ClickAnimation.None); }
void ShowConfig () { if (config == null) config = new NPRConfigDialog (); config.Show (); }
/// <summary> /// The config button was clicked. /// </summary> /// <param name="sender">The sending object.</param> /// <param name="e">The event.</param> private void BtnConfig_Click(object sender, RoutedEventArgs e) { var dialog = new ConfigDialog(); dialog.Show(); }