예제 #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
        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;
        }