Exemplo n.º 1
0
        public void OnConfigDialog()
        {
            ConfigDialog c = new ConfigDialog();

            c.ConfigChanged += new ConfigDialog.ConfigChangedDelegate(ConfigDialog_ConfigChanged);
            c.Show();
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
		void ShowConfig ()
		{
			if (config == null)
				config = new NPRConfigDialog ();
			config.Show ();	
		}
Exemplo n.º 5
0
        /// <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();
        }