public MainWindow()
 {
     InitializeComponent();
     CheckTimer.Interval = TimeSpan.FromSeconds(3);
     CheckTimer.Tick    += UpdateChat;
     CheckTimer.Start();
     this.Logs            = new List <Log>();
     ChatView.ItemsSource = this.Logs;
     OptionsController.CheckIfSet();
 }
 private void BtnSaveOptions_Click(object sender, RoutedEventArgs e)
 {
     OptionsController.SavePath(tbFolderPath.Text);
     OptionsController.SaveLang(tbLang.Text);
     this.Close();
 }
 private void BtnSetDefault_Click(object sender, RoutedEventArgs e)
 {
     OptionsController.SaveDefault();
     this.Close();
 }
 public OptionsWindow()
 {
     InitializeComponent();
     this.tbFolderPath.Text = OptionsController.GetPath();
     this.tbLang.Text       = OptionsController.GetLang();
 }