void doMain(string[] args) { Guid sessionID = Guid.NewGuid(); fileSystem_ = new WSFileSystem(sessionID, "http://13.187.242.140/mb/FileUploader.asmx"); if( getWebServiceUrl().Length >0) fileSystem_.Url_ = getWebServiceUrl(); fileSystem_.WSFileSystemEvent += this.onWSFileSystemEvent; // handleCommandLine(args); // fileSystem_.WSFileSystemEvent -= this.onWSFileSystemEvent; }
private void Form1_Load(object sender, EventArgs e) { lblFileName.Text = ""; lblProgross.Text = ""; fileSystem_ = new WSFileSystem(sessionID_, "http://chnxsc808w2k3sp2/mb/FileUploader.asmx"); fileSystem_.WSFileSystemEvent += this.onWSFileSystemEvent; }
private void Form1_FormClosed(object sender, FormClosedEventArgs e) { fileSystem_.WSFileSystemEvent -= this.onWSFileSystemEvent; fileSystem_ = null; }
private void Form1_Load(object sender, EventArgs e) { Exception ex; if( ! config_.init(out ex)) { ShowMessageBox("Failed to read updater configuration: " + ex.ToString()); this.Close(); return; } webServiceUrl_ = config_.getServiceUrl(); clientID_ = sessionID_.ToByteArray()[0].ToString(); messageBus_ = new WSFileSystem(sessionID_,webServiceUrl_); lblInfo.Text = sessionID_.ToString() + " - " + clientID_; lblInfo.Text += "\n"; lblInfo.Text += messageBus_.Url_; btnUpload.Enabled = false; btnStartSession.Enabled = true; btnSendMessage.Enabled = false; btnStopSession.Enabled = false; btnCamera.Focus(); // Subscribe for event //m_service.GetMessageCompleted += new uploaderWS.GetMessageCompletedEventHandler(m_service_GetActiveClientsCompleted); }