Example #1
0
 public MainWin()
 {
     InitializeComponent();
     SaveInFile.GetErrorOutputPath      = PulloutFromFile.GetErrorOutputPath = CheckDirectory.GetErrorOutputPath = MessegError;
     PulloutFromFile.GetMessageUserPath = SaveInFile.GetMessageUserPath = MessegeUser;
     //контент
     _saveInFile = new SaveInFile(savedirect, saveAllContent);
     _fromFile   = new PulloutFromFile(savedirect + "\\" + saveAllContent);
     //главная
     _mainSave = new SaveInFile(savedirect, saveMainFile);
     _mainfrom = new PulloutFromFile(savedirect + "\\" + saveMainFile);
     //папки-send
     _fromSending = new PulloutFromFile(savedirect + "\\" + sendingFolder);
     CheckSaveFolderAndFiles();
     if (first)
     {
         PutSendingFolder();
         PutContentFromFile();
         toolStripStatusLabel1.Text = _mainPath;
         first = true;
         timerTime.Interval = 60000;
         labelTime.Text     = DateTime.Now.ToShortDateString() + "  " + DateTime.Now.ToShortTimeString();
         timerTime.Tick    += (object sender, EventArgs e) =>
         {
             labelTime.Text = DateTime.Now.ToShortDateString() + "  " + DateTime.Now.ToShortTimeString();
         };
         timerTime.Start();
     }
 }
Example #2
0
 public AddAdress()
 {
     InitializeComponent();
     AdressesSend.GetErrorOutputPath = MessegError;
     if (Adresses.IsFull())
     {
         AddToListBox();
     }
     _saveSending = new SaveInFile(savedirect, sendingFolder);
 }
Example #3
0
 public DellAdress()
 {
     InitializeComponent();
     _saveSending = new SaveInFile(savedirect, sendingFolder);
     AdressesSend.GetErrorOutputPath = MessegError;
     if (Adresses.IsFull())
     {
         AddToListBox();
     }
     else
     {
         listBox1.Items.Add("нет папок");
     }
 }