Exemplo n.º 1
0
        private void mainForm_Load(object sender, EventArgs e)
        {
            Control.CheckForIllegalCrossThreadCalls = false;
            netConnect = new NetConnect();

            FormBorderStyle = FormBorderStyle.None;
            cWindow         = new connectWindows();
            hWindow         = new historyWindows();
            initUI();
        }
        private void btn_selectFile_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.InitialDirectory = @"C:\Users\Cui\Desktop";
            ofd.Title            = "请选择将要发送的文件";
            ofd.Filter           = "所有文件|*.*";
            ofd.ShowDialog();
            //tb_filePath.Text = ofd.FileName;
            String filePath = ofd.FileName;
            String flength  = FileHelper.GetFileSize(filePath).ToString();

            NetConnect.setFileInfo(filePath, flength);
        }
 private void connectWindows_Load(object sender, EventArgs e)
 {
     Control.CheckForIllegalCrossThreadCalls = false;
     netConnect = new NetConnect();
 }
 private void connectWindows_Load(object sender, EventArgs e)
 {
     Control.CheckForIllegalCrossThreadCalls = false;
     netConnect = new NetConnect();
 }
Exemplo n.º 5
0
        private void mainForm_Load(object sender, EventArgs e)
        {
            Control.CheckForIllegalCrossThreadCalls = false;
            netConnect = new NetConnect();

            FormBorderStyle = FormBorderStyle.None;
            cWindow = new connectWindows();
            hWindow = new historyWindows();
            initUI();
        }