示例#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();
 }
示例#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();
        }