Пример #1
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (PathTB.Text != null && fileNameMaskTB.Text != null && keyWordTB.Text != null)
     {
         LoadDataManager.UploadData(new InputData(PathTB.Text, fileNameMaskTB.Text, keyWordTB.Text), PATH_SAVE_DATA);
     }
 }
Пример #2
0
        public Form1() : base()
        {
            InitializeComponent();
            DoubleBuffered = true;

            InputData data = LoadDataManager.LoadData <InputData>(PATH_SAVE_DATA);

            if (data != null)
            {
                PathTB.Text         = data.Path;
                _folderPath         = data.Path;
                fileNameMaskTB.Text = data.FileName;
                keyWordTB.Text      = data.KeyWord;
            }
            else
            {
                _folderPath = "Выберите папку...";
                PathTB.Text = _folderPath;
            }

            TimerPaint.Interval = 100;

            _searchOver = false;
        }