Пример #1
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;
        }
Пример #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;
        }