Ejemplo n.º 1
0
        public SendAndReceiveDataProcess(SendDataMode mode1, SendFTPMode mode2)
        {
            InitializeComponent();

            this.sendDataMode = mode1;
            this.sendFTPMode  = mode2;

            if (this.sendDataMode == SendDataMode.Offline)
            {
                constMenu.Text += " (Cable)";
            }
            else
            {
                constMenu.Text += " (WIFI)";
            }

            if (this.sendFTPMode == SendFTPMode.All)
            {
                lbMode.Text += "All";
            }
            else
            {
                lbMode.Text += "Only New";
            }

            string[] files = Directory.GetFiles(path + @"\temp");
            if (files.Length != 0)
            {
                for (int i = 0; i < files.Length; i++)
                {
                    File.Delete(files[i]);
                }
            }
        }
Ejemplo n.º 2
0
        public SendDataFTP(SendFTPMode mode)
        {
            InitializeComponent();
            this.mode = mode;
            switch (mode)
            {
            case SendFTPMode.All:
                lbMode.Text += "All";
                break;

            case SendFTPMode.OnlyNew:
                lbMode.Text += "Only New";
                break;
            }
        }