コード例 #1
0
ファイル: UpFiles.cs プロジェクト: gezidan/ZYSOCKET
        public UpFiles(WinMain main,string filename, long key,FileStream stream)
        {
            InitializeComponent();
            this.Key=key;
            this.Stream = stream;        
            this.main = main;
            main.UpFileClose += new UpFileCloseHandler(main_UpFileClose);
            this.FormClosed += new FormClosedEventHandler(UpFiles_FormClosed);
            fileLength = stream.Length;
          
            progressBar1.Maximum = 1000;
            this.progressBar1.Value = 0;

            this.Text = filename;

            button2.Enabled = false;
        }
コード例 #2
0
ファイル: UpFiles.cs プロジェクト: zhaopan-vip/ZYSOCKET
        public UpFiles(WinMain main, string filename, long key, FileStream stream)
        {
            InitializeComponent();
            this.Key          = key;
            this.Stream       = stream;
            this.main         = main;
            main.UpFileClose += new UpFileCloseHandler(main_UpFileClose);
            this.FormClosed  += new FormClosedEventHandler(UpFiles_FormClosed);
            fileLength        = stream.Length;

            progressBar1.Maximum    = 1000;
            this.progressBar1.Value = 0;

            this.Text = filename;

            button2.Enabled = false;
        }