/// <summary> /// Вызов панели статуса стояка /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnStatus_Click(object sender, EventArgs e) { Fetch(); if (statusForm == null) { statusForm = new StatusForm(); } statusForm.Show(); statusForm.BringToFront(); }
private void simpleButtonServices_Click(object sender, EventArgs e) { var sp = DevExpressHelper.GetSelectedRecord <SalePoint>(gridViewSalePoints); if (sp != null) { try { var clientService = Protocol.CreateClientProxy(sp.IP); StatusForm.Show(this, sp, clientService.GetServicesStatus()); } catch (Exception ex) { ErrorHelper.ShowError <ErrorForm>(null, ex); } } }
/// <summary> /// 显示进度窗口 /// </summary> /// <param name="title">进度窗口的标题</param> /// <param name="desc">进度窗口的描述</param> /// <param name="max">最大进度值</param> /// <param name="value">当前进度值</param> public void ShowStatus(string title, string desc, int max = 100, int value = 0) { StatusForm.Style = Style; StatusForm.Show(title, desc, max, value); }
public void Show(Form owner) { form.Show(owner); }
private void itmExtractAll_Click(System.Object sender, System.EventArgs e) { //Prompt for save filename FolderBrowserDialog dialog = new FolderBrowserDialog(); if (dialog.ShowDialog() != DialogResult.OK) return; //Get Atari disk directory List<DirectoryEntry> files = fileSystem.DiskDirectory(); //Create status display form StatusForm status = new StatusForm(); status.Title = "Extracting files"; status.Show(); // Extract each file string err = ""; bool hasError = false; foreach (DirectoryEntry sourceFile in files) { status.Message = String.Format("Extracting {0}...", sourceFile.FileName); status.Refresh(); err = ExtractFile(sourceFile.FileName, string.Format("{0}\\{1}", dialog.SelectedPath, sourceFile.FileName)); // Display extract errors if (err != "") { status.AddError(err); hasError = true; } } // If there are no errors close the status box if (!hasError) status.Close(); }
private void btnStatus_Click(object sender, EventArgs e) { StatusForm statusForm = new StatusForm(); statusForm.Show(); }
public GuiMessageRecipient() { messageForm = new StatusForm(); messageForm.Show(); }