예제 #1
0
        public MainWindow()
        {
            var sP = new SetPresence();

            //Initializes the rich presence.
            sP.Initialize();

            InitializeComponent();

            //Loads saved stuff
            SaveSettings.FileLoader();
            TickBoxLoader();

            //Sets loaded list.
            BlockedWordsTextBox.Text = SaveSettings.LoadedList;

            //Title update check timer.
            TUChange          = new DispatcherTimer();
            TUChange.Tick    += new EventHandler(TUChange_Tick);
            TUChange.Interval = new TimeSpan(0, 0, 1);
            TUChange.Start();

            //Double clicking the tray icon
            notIco.DoubleClick +=
                delegate(object sender, EventArgs args)
            {
                this.Show();
                this.WindowState = WindowState.Normal;
                notIco.Visible   = false;
            };
        }
예제 #2
0
 private void SaveBtn_Click(object sender, RoutedEventArgs e)
 {
     SaveSettings.QuickAndDirtyFix();
     TickBoxSaver();
 }