Beispiel #1
0
        public Form1()
        {
            InitializeComponent();
            timer1.Interval = intervalHour * Hour + intervalMinute * Minute + intervalSecond * Second;
            timer1.Start();
            timer2.Start();
            _fileOperater     = new FileOperater();
            _photoShopLisener = new PhotoShopLisener(backUpPath, _fileOperater);
            _saiLisener       = new SaiListener(backUpPath, _fileOperater);

            maskedTextBox1.Visible   = false;
            maskedTextBox1.TextAlign = HorizontalAlignment.Center;
            label5.Location          = new Point(label5.Location.X, maskedTextBox1.Location.Y);
            label5.Text         = $@"{intervalHour:D2}时{intervalMinute:D2}分{intervalSecond:D2}秒";
            maskedTextBox1.Text = $@"{intervalHour:D2}时{intervalMinute:D2}分{intervalSecond:D2}秒";
//            this.panel1.Enabled = false;
            this.ActiveControl = null;
            //            label1.BackColor = Color.FromArgb(50, 125, 125, 125);
            //            WindowState = FormWindowState.Maximized;

            //            Screen.PrimaryScreen.Bounds

//            int iActulaWidth = Screen.PrimaryScreen.Bounds.Width;
//
//            int iActulaHeight = Screen.PrimaryScreen.Bounds.Height;
//            this.Size = new Size(iActulaWidth, iActulaHeight);
//            TopMost = true;
//            label7.Location = label1.Location;
        }
Beispiel #2
0
 public SaiListener(string path, FileOperater fileOperater) : base(path, fileOperater)
 {
     sai       = new SaiProcess("sai");
     sai2      = new SaiProcess("sai2");
     sai.copy  = CopyFile;
     sai2.copy = CopyFile;
 }
Beispiel #3
0
 public Listener(string path, FileOperater fileOperater)
 {
     this.path          = path;
     this._fileOperater = fileOperater;
     if (!Directory.Exists(path))
     {
         Directory.CreateDirectory(path);
     }
     if (!Directory.Exists(path + "/ps"))
     {
         Directory.CreateDirectory(path + "/ps");
     }
     if (!Directory.Exists(path + "/sai"))
     {
         Directory.CreateDirectory(path + "/sai");
     }
 }
Beispiel #4
0
 public PhotoShopLisener(string path, FileOperater fileOperater) : base(path, fileOperater)
 {
 }