Пример #1
0
        private void CreateNewWindowDialog()
        {
            Input_Custom inputDialog = new Input_Custom();

            if (inputDialog.ShowDialog() == true)
            {
                CreateNewWindow(inputDialog.Url);
            }
        }
Пример #2
0
        public void ShowInputCustomChatDialogBox()
        {
            Input_Custom inputDialog = new Input_Custom();

            if (inputDialog.ShowDialog() == true)
            {
                this.genSettings.isCustomURL = true;
                this.genSettings.CustomURL   = inputDialog.Url;
            }
        }
Пример #3
0
        public void ShowInputCustomChatDialogBox()
        {
            Input_Custom inputDialog = new Input_Custom();

            if (inputDialog.ShowDialog() == true)
            {
                string customURL = inputDialog.Url;

                AppSettings.Default.custom_url = customURL;
                AppSettings.Default.Save();
                AppSettings.Default.Reload();
            }
        }
Пример #4
0
        private void MenuItem_ClickNewWindow(object sender, RoutedEventArgs e)
        {
            Input_Custom inputDialog = new Input_Custom();

            if (inputDialog.ShowDialog() == true)
            {
                if (this.genSettings.CustomWindows.Contains(inputDialog.Url))
                {
                    MessageBox.Show("That URL already exists as a window.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
                }
                else
                {
                    this.genSettings.CustomWindows.Add(inputDialog.Url);
                    OpenNewCustomWindow(inputDialog.Url);
                }
            }
        }