Пример #1
0
    protected void OnPreferencesActionActivated(object sender, EventArgs e)
    {
        Preferences pref = new Preferences(settings, registry);

        pref.Icon         = programIcon;
        pref.TransientFor = this;
        if ((ResponseType)pref.Run() == ResponseType.Close)
        {
            OnRefreshActionActivated(pref, new EventArgs());
        }
        pref.Destroy();
    }
Пример #2
0
    protected virtual void OnPreferences(object sender, System.EventArgs e)
    {
        Preferences prefs = new Preferences();

        prefs.Timeout = timeout_ms;
        int res = prefs.Run();

        if (res == (int)ResponseType.Ok)
        {
            timeout_ms = prefs.Timeout;
            if (timeout_active)
            {
                GLib.Source.Remove(timeout_id);
                timeout_id = GLib.Timeout.Add(timeout_ms, OnTimeout);
            }
        }
        prefs.Destroy();
    }
Пример #3
0
    protected virtual void OnPreferences(object sender, System.EventArgs e)
    {
        Preferences prefs = new Preferences ();
        prefs.Timeout = timeout_ms;
        int res = prefs.Run ();

        if (res == (int)ResponseType.Ok) {
            timeout_ms = prefs.Timeout;
            if (timeout_active) {
                GLib.Source.Remove (timeout_id);
                timeout_id = GLib.Timeout.Add (timeout_ms, OnTimeout);
            }
        }
        prefs.Destroy ();
    }
Пример #4
0
 protected void OnPreferencesActionActivated(object sender, EventArgs e)
 {
     Preferences pref = new Preferences(settings,registry);
     pref.Icon = programIcon;
     pref.TransientFor = this;
     if ((ResponseType)pref.Run() == ResponseType.Close)
     {
         OnRefreshActionActivated(pref, new EventArgs());
     }
     pref.Destroy();
 }