Ejemplo n.º 1
0
        public AboutWindow()
        {
            InitializeComponent();
            PInvokeHelper.DisableMinimizeButton(this);
            PInvokeHelper.DisableMaximizeButton(this);

            VersionField.Text = SettingsManager.Version;
        }
Ejemplo n.º 2
0
        public SettingsWindow()
        {
            InitializeComponent();
            PInvokeHelper.DisableMinimizeButton(this);
            PInvokeHelper.DisableMaximizeButton(this);

            LoadSettings();
        }
Ejemplo n.º 3
0
        public UpdateAvailableWindow(string newVersion)
        {
            InitializeComponent();
            PInvokeHelper.DisableMinimizeButton(this);
            PInvokeHelper.DisableMaximizeButton(this);

            CurrentVersion.Text  = $"Current version: {SettingsManager.Version}";
            AvailabeVersion.Text = $"Available version: {newVersion}";
        }
Ejemplo n.º 4
0
        public RatelimitWindow()
        {
            InitializeComponent();
            PInvokeHelper.DisableMinimizeButton(this);
            PInvokeHelper.DisableMaximizeButton(this);

            _vm         = new RatelimitWindowViewModel();
            DataContext = _vm;

            _vm.RefreshCommand = new RelayCommand(async o =>
            {
                RefreshButton.IsEnabled = false;
                await _vm.Refresh();
                RefreshButton.IsEnabled = true;
            });

            _vm.RefreshCommand.Execute(null);
        }
        public CustomSizeWindow(ImageLoader.FitMode currentFit)
        {
            InitializeComponent();
            PInvokeHelper.DisableMinimizeButton(this);
            PInvokeHelper.DisableMaximizeButton(this);

            switch (currentFit)
            {
            case ImageLoader.FitMode.Fill:
                Fill.IsChecked = true;
                break;

            case ImageLoader.FitMode.Stretch:
                Stretch.IsChecked = true;
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(currentFit), currentFit, null);
            }
        }
Ejemplo n.º 6
0
 public UploadingWindow()
 {
     InitializeComponent();
     PInvokeHelper.DisableMinimizeButton(this);
     PInvokeHelper.DisableMaximizeButton(this);
 }
Ejemplo n.º 7
0
 public InstructionsWindow()
 {
     InitializeComponent();
     PInvokeHelper.DisableMinimizeButton(this);
     PInvokeHelper.DisableMaximizeButton(this);
 }