Пример #1
0
        public ChangeOutputFileForm()
        {
            InitializeComponent();

            _FNCP = new FileNameCleaner.Processor(outputFileNameTextBox,
                                                  () => this.OutputFileName,
                                                  outputFileName => this.OutputFileName = outputFileName);
        }
        private void InitializeComponent()
        {
            AvaloniaXamlLoader.Load(this);

            outputFileNameTextBox = this.Find <TextBox>(nameof(outputFileNameTextBox));
            this.Find <Button>("outputFileNameClearButton").Click += outputFileNameClearButton_Click;
            this.Find <Button>("okButton").Click     += (s, e) => OkButtonProcess();
            this.Find <Button>("cancelButton").Click += (s, e) => this.Close();

            _FNCP = new FileNameCleaner.Processor(outputFileNameTextBox, () => this.OutputFileName, outputFileName => this.OutputFileName = outputFileName);

            outputFileNameTextBox_SubscribeDisposable = outputFileNameTextBox.GetObservable(TextBox.TextProperty).Subscribe(outputFileNameTextBox_TextChanged);
        }
Пример #3
0
        private AddNewDownloadForm()
        {
            InitializeComponent();
            //----------------------------------------//

            //---statusBarUC.IsVisibleParallelismLabel = false;
            logPanel.Visible         = false;
            logPanel.VisibleChanged += logPanel_VisibleChanged;
            logUC.ShowResponseColumn = false;

            _FNCP = new FileNameCleaner.Processor(outputFileNameTextBox,
                                                  () => this.OutputFileName,
                                                  setOutputFileName);
        }