void ReleaseDesignerOutlets() { if (HeadlineLabel != null) { HeadlineLabel.Dispose(); HeadlineLabel = null; } if (SubtitleLabel != null) { SubtitleLabel.Dispose(); SubtitleLabel = null; } if (TimeLabel != null) { TimeLabel.Dispose(); TimeLabel = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } }
public IssueWorkflowAction( JiraIssue issue, JiraNamedEntity action, JiraIssueListModel model, List <JiraField> fields, StatusLabel status, Action onFinish) { this.issue = issue; this.action = action; this.model = model; this.fields = JiraActionFieldType.sortFieldList(fields); this.status = status; this.onFinish = onFinish; InitializeComponent(); Text = issue.Key + ": " + action.Name; ClientSize = new Size(INITIAL_WIDTH, INITIAL_HEIGHT + buttonOk.Height + 3 * MARGIN); buttonOk.Enabled = false; StartPosition = FormStartPosition.CenterParent; panelThrobber.Visible = true; panelContent.Visible = false; }
public StatusLabel GetStatusLabel(NameValueCollection appSettings, SnipeItApi snipe) { string defaultLabel = appSettings["DefaultStatusLabel"]; StatusLabel defaultStatusLabel = new StatusLabel(defaultLabel); return(defaultStatusLabel); }
void ReleaseDesignerOutlets() { if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } if (SyncedIcon != null) { SyncedIcon.Dispose(); SyncedIcon = null; } if (LoadingIcon != null) { LoadingIcon.Dispose(); LoadingIcon = null; } if (BottomSeparator != null) { BottomSeparator.Dispose(); BottomSeparator = null; } }
public void SetStyle( ) { // setup the text fonts and colors StatusLabel.SetFont(ControlStylingConfig.Font_Bold, 24); StatusLabel.TextColor = ControlStylingConfig.TextField_ActiveTextColor; ResultSymbol.SetFont(PrivateControlStylingConfig.Icon_Font_Secondary, 64); ResultSymbol.TextColor = ControlStylingConfig.TextField_PlaceholderTextColor; ResultCircle.BackgroundColor = ControlStylingConfig.BG_Layer_Color; ResultLabel.SetFont(ControlStylingConfig.Font_Light, 14); ResultLabel.TextColor = ControlStylingConfig.TextField_PlaceholderTextColor; DoneButton.SetFont(ControlStylingConfig.Font_Regular, 14); DoneButton.TextColor = ControlStylingConfig.Button_TextColor; DoneButton.BackgroundColor = ControlStylingConfig.Button_BGColor; // setup the background layer colors //ResultBackground.BackgroundColor = ControlStylingConfig.BG_Layer_Color; //ResultBackground.BorderColor = ControlStylingConfig.BG_Layer_BorderColor; //StatusBackground.BackgroundColor = layerBgColor; //StatusBackground.BorderColor = layerBorderColor; View.BackgroundColor = ControlStylingConfig.BackgroundColor; DoneButton.CornerRadius = 4; }
void ReleaseDesignerOutlets() { if (GoButton != null) { GoButton.Dispose(); GoButton = null; } if (StopButton != null) { StopButton.Dispose(); StopButton = null; } if (UrlField != null) { UrlField.Dispose(); UrlField = null; } if (WebView != null) { WebView.Dispose(); WebView = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } }
void ReleaseDesignerOutlets() { if (ClearButton != null) { ClearButton.Dispose(); ClearButton = null; } if (ReadButton != null) { ReadButton.Dispose(); ReadButton = null; } if (ReadText != null) { ReadText.Dispose(); ReadText = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } if (StopButton != null) { StopButton.Dispose(); StopButton = null; } }
protected override void SetupLayoutConstraints() { base.SetupLayoutConstraints(); this.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); this.AddConstraints( TypeImage.AtLeftOf(this, AppDimens.Inset1X), TypeImage.AtTopOf(this, AppDimens.Inset1X), TypeImage.AtBottomOf(this, AppDimens.Inset1X), TypeImage.WithSameCenterY(this), TypeImage.Height().EqualTo(AppDimens.DefaultTypeImageSize), TypeImage.Width().EqualTo(AppDimens.DefaultTypeImageSize)); this.AddConstraints( DurationLabel.ToRightOf(TypeImage, AppDimens.Inset1X), DurationLabel.AtTopOf(TypeImage, AppDimens.InsetHalf)); this.AddConstraints( TypeLabel.ToRightOf(TypeImage, AppDimens.Inset1X), TypeLabel.AtBottomOf(TypeImage, AppDimens.InsetHalf)); this.AddConstraints( StatusLabel.AtRightOf(this, AppDimens.Inset1X), StatusLabel.WithSameCenterY(this)); this.AddConstraints( Separator.WithSameLeft(DurationLabel), Separator.WithSameRight(this), Separator.WithSameBottom(this), Separator.Height().EqualTo(AppDimens.DefaultSeparatorSize)); }
void ReleaseDesignerOutlets() { if (UsernameTextField != null) { UsernameTextField.Dispose(); UsernameTextField = null; } if (EmailAddressTextField != null) { EmailAddressTextField.Dispose(); EmailAddressTextField = null; } if (PasswordTextField != null) { PasswordTextField.Dispose(); PasswordTextField = null; } if (RegisterButton != null) { RegisterButton.Dispose(); RegisterButton = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } }
public void StartUpload(UploadContract contract) { StatusLabel.Invoke(new Action(() => StatusLabel.Text = "Uploading: " + contract.Filename)); Uploading = true; FileUpload = contract; UploadTimer.Start(); }
private void AddButton_Click(object sender, EventArgs e) { if (IDTextField.Text != "" && NameTextField.Text != "") { using (SqlCommand cmd = new SqlCommand("addBank", con)) { cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@id", IDTextField.Text); cmd.Parameters.AddWithValue("@name", NameTextField.Text); cmd.Parameters.AddWithValue("@address", AddressTextField.Text); con.Open(); try { cmd.ExecuteNonQuery(); StatusLabel.Text = "Successfully added"; StatusLabel.Show(); IDTextField.Text = ""; NameTextField.Text = ""; AddressTextField.Text = ""; } catch (Exception x) { StatusLabel.Text = "Error!"; StatusLabel.Show(); MessageBox.Show("" + x); } con.Close(); bankDatagridview(); } } }
private static void runAction(Control owner, JiraNamedEntity action, JiraIssueListModel model, JiraIssue issue, List <JiraField> fields, StatusLabel status, Action onFinish) { JiraIssue issueWithTime = SmartJiraServerFacade.Instance.getIssue(issue.Server, issue.Key); issueWithTime.SecurityLevel = SmartJiraServerFacade.Instance.getSecurityLevel(issue); object rawIssueObject = SmartJiraServerFacade.Instance.getRawIssueObject(issue); List <JiraField> fieldsWithValues = JiraActionFieldType.fillFieldValues(issue, rawIssueObject, fields); // PLVS-133 - this should never happen but does? if (model == null) { owner.Invoke(new MethodInvoker(() => PlvsUtils.showError("Issue List Model was null, please report this as a bug", new Exception("IssueActionRunner.runAction()")))); model = JiraIssueListModelImpl.Instance; } if (fieldsWithValues == null || fieldsWithValues.Count == 0) { runActionWithoutFields(owner, action, model, issue, status, onFinish); } else { owner.Invoke(new MethodInvoker(() => new IssueWorkflowAction(issue, action, model, fieldsWithValues, status, onFinish).initAndShowDialog())); } }
private void SetPasswordButton_Click(object sender, EventArgs e) { if (!string.IsNullOrWhiteSpace(PasswordField.Text) && !string.IsNullOrWhiteSpace(ConfirmPasswordField.Text) && PasswordField.Text == ConfirmPasswordField.Text) { string strText = PasswordField.Text; string key = "*****@*****.**"; string encText = Tools.EncryptText(strText, key); var root = Registry.CurrentUser; RegistryKey reg = root.OpenSubKey("Software", true).CreateSubKey("hSmNz"); reg.Close(); RegistryKey reg1 = root.OpenSubKey("Software").OpenSubKey("hSmNz", true); reg1.SetValue("SNG", encText); reg1.SetValue("IsSNG", true); reg1.Close(); RemovePasswordButton.Enabled = true; StatusLabel.ForeColor = Color.Green; StatusLabel.Text = "Password has been set!"; SetPasswordButton.Enabled = false; PasswordField.Text = ""; ConfirmPasswordField.Text = ""; materialLabel5.Text = ""; PasswordField.Enabled = false; ConfirmPasswordField.Enabled = false; Timer t1 = new Timer(3500); t1.Start(); t1.Elapsed += (o, args) => { StatusLabel.Invoke(new Action(() => { StatusLabel.Text = ""; })); t1.Stop(); }; } }
private void backgroundLoader_ProgressChanged(object sender, ProgressChangedEventArgs e) { try{ string labelText = null; switch (e.ProgressPercentage) { case 1: labelText = "Loading settings..."; break; case 2: labelText = "Testing interaction web service"; break; case 3: labelText = "Testing VTL DB"; break; case 4: labelText = "Testing validation web service"; break; case 5: labelText = "Testing SDMX metadata web service"; break; } StatusLabel.Text = labelText; StatusLabel.Refresh(); } catch (Exception ex) { CommonItem.ErrManger.ErrorManagement(ex, false, this); } }
public BambooBuildHistoryTable(StatusLabel statusLabel) { this.statusLabel = statusLabel; InitializeComponent(); Dock = DockStyle.Fill; updateButtons(false); }
private static void UpdateProgress() { ProgressBar.Invoke(new InvokeDelegate(SetProgressBarValue), (int)((double)Status.CurrentProgress * 10000 / Status.TotalProgress)); if (Status.TotalProgress > 0) { ProgressLabel.Invoke(new InvokeDelegate(SetProgressLabel), string.Format("{0}/{1}", Status.CurrentProgress, Status.TotalProgress)); PercentageLabel.Invoke(new InvokeDelegate(SetPercentageLabel), string.Format("{0:0.##}%", (double)Status.CurrentProgress * 100 / Status.TotalProgress)); TimeUsageLabel.Invoke(new InvokeDelegate(SetTimeUsageLabel), "已用时间:" + TimeSpan.FromMilliseconds(Timer.ElapsedMilliseconds).ToString(@"hh\:mm\:ss\.fff")); var time = (double)Timer.ElapsedMilliseconds * (Status.TotalProgress - Status.CurrentProgress) / Status.CurrentProgress; if (time.HasValue()) { TimeEstimationLabel.Invoke(new InvokeDelegate(SetTimeEstimationLabel), "估计剩余时间:" + TimeSpan.FromMilliseconds(time).ToString(@"hh\:mm\:ss\.fff")); } else { TimeEstimationLabel.Invoke(new InvokeDelegate(SetTimeEstimationLabel), "等待开始"); } } else { StatusLabel.Invoke(new InvokeDelegate(SetStatusLabel), Status.CurrentStatus); ProgressLabel.Invoke(new InvokeDelegate(SetProgressLabel), "等待开始"); PercentageLabel.Invoke(new InvokeDelegate(SetPercentageLabel), "等待开始"); TimeUsageLabel.Invoke(new InvokeDelegate(SetTimeUsageLabel), "等待开始"); TimeEstimationLabel.Invoke(new InvokeDelegate(SetTimeEstimationLabel), "等待开始"); } }
private void MemoryTimer_Tick(object sender, EventArgs e) { Task.Run(() => { var wantedButtonState = false; if (SelectedMemory == null || !SelectedMemory.IsRunning()) { SetLabelText(StatusLabel, "Status: Not running"); StatusLabel.BeginInvoke((MethodInvoker) delegate { toolTip1.SetToolTip(StatusLabel, "Process not found or failed to write to memory!"); StatusLabel.ForeColor = Color.Orange; }); } else { wantedButtonState = !Program.IsElevated && (SelectedMemory?.ProcMemory?.RequiresElevation() ?? false); DoRAChecks(); DoFoV(); ToggleFog(settings.Fog); DoDvars(); } if (AdminLaunchButton.Visible != wantedButtonState) { AdminLaunchButton.BeginInvoke((MethodInvoker) delegate { AdminLaunchButton.Visible = wantedButtonState; }); } }); }
private void OberflächeDeaktivieren(bool Aktivieren) { if (Aktivieren) { CSVPfadSuchenButton.Invoke(new Action <bool>(s => { CSVPfadSuchenButton.Enabled = s; }), true); TestEmailAdresseTextBox.Invoke(new Action <bool>(s => { TestEmailAdresseTextBox.Enabled = s; }), true); if (AdressePrüfen(TestEmailAdresseTextBox.Text)) { TestButton.Invoke(new Action <bool>(s => { TestButton.Enabled = s; }), true); } StartenButton.Invoke(new Action <bool>(s => { StartenButton.Enabled = s; }), true); StatusLabel.Invoke(new Action <string>(s => { StatusLabel.Text = s; }), "Status: 0/0 versendet ETA: 0m 0s"); Ladebalken.Invoke(new Action <int>(s => { Ladebalken.Minimum = s; }), 0); if (!ReferenceEquals(AlleMails, null)) { Ladebalken.Invoke(new Action <int>(s => { Ladebalken.Maximum = s; }), AlleMails.Length); } else { Ladebalken.Invoke(new Action <int>(s => { Ladebalken.Maximum = s; }), 1); } Ladebalken.Invoke(new Action <int>(s => { Ladebalken.Value = s; }), 0); } else { CSVPfadSuchenButton.Invoke(new Action <bool>(s => { CSVPfadSuchenButton.Enabled = s; }), false); TestEmailAdresseTextBox.Invoke(new Action <bool>(s => { TestEmailAdresseTextBox.Enabled = s; }), false); TestButton.Invoke(new Action <bool>(s => { TestButton.Enabled = s; }), false); StartenButton.Invoke(new Action <bool>(s => { StartenButton.Enabled = s; }), false); } }
private void AssignControls(StatusLabel label, CustomProgressBar bar, State state) { label.UpdateContent(state); if (bar != null) { bar.Value = state.DownloadProgress; } }
public GingerGridPage(GingerGrid GingerGrid) { InitializeComponent(); mGingerGrid = GingerGrid; StatusLabel.BindControl(GingerGrid, nameof(GingerGrid.Status)); mGingerGrid.NodeList.CollectionChanged += NodeList_CollectionChanged; ShowNodes(); }
private void loadComponents(AbstractJiraServerFacade facade, StatusLabel status) { try { List <JiraNamedEntity> components = facade.getComponents(Server, project); parent.Invoke(new MethodInvoker(() => populateComponents(components))); } catch (Exception e) { status.setError("Unable to retrieve component list", e); } }
private void loadPriorities(AbstractJiraServerFacade facade, StatusLabel status) { try { List <JiraNamedEntity> priorities = facade.getPriorities(Server); parent.Invoke(new MethodInvoker(() => populatePriorities(priorities))); } catch (Exception e) { status.setError("Unable to retrieve priorities", e); } }
public override void onClick(StatusLabel status) { if (usersLoaded) { return; } usersLoaded = true; loadUsers(); }
private void loadProjects(StatusLabel status) { try { List <JiraProject> projects = Facade.getProjects(Server); parent.Invoke(new MethodInvoker(() => populateProjects(projects))); } catch (Exception e) { status.setError("Failed to retrieve projects", e); } }
public PartialViewResult SMSBCAPartial() { Channel channel = new Channel(); channel = GetChannel(); ViewBag.StatusChange = String.IsNullOrEmpty(Request["statusChange"]) ? String.Empty : Request["statusChange"]; ViewBag.RequestId = String.IsNullOrEmpty(Request["requestId"]) ? String.Empty : Request["requestId"]; ViewBag.TicketNumber = String.IsNullOrEmpty(Request["ticketNumber"]) ? String.Empty : Request["ticketNumber"]; List <SMSBCAInfo> model = new List <SMSBCAInfo>(); Params param = new Params() { Parameter = new Dictionary <string, string>() }; if (channel != null) { string mobileNo = null; if (!string.IsNullOrEmpty(channel.HpNo)) { mobileNo = channel.HpNo; param.RequestTransType = "GetSMSBankingInfoByMobileNo"; param.Parameter.Add("mobileNo", channel.HpNo); } else if (!string.IsNullOrEmpty(channel.CardNo)) { //wiwik 20151124 param.WSDL = "ESBDBDelimiter"; param.RequestTransType = "GetSMSBankingInfoByATMNo"; param.Parameter.Add("atmNo", channel.CardNo); } model = ChannelInquiry.SMSBCA(param); } ViewBag.searchResultsCount = model.Count; ViewBag.DDL_Reason = new SelectList(StatusLabel.GetChangeStatusReason(entityType), "Value", "Text"); ViewBag.Channel = channel; if (model.Count > 0) { if (!string.IsNullOrEmpty(channel.HpNo)) { SMSBCAInfo smsbcafirst = model.First(); return(PartialView("_SMSBCAInfo", smsbcafirst)); } else { ViewBag.searchResults = model; return(PartialView("_SMSBCAInfoList", model)); } } return(PartialView("_SMSBCAInfo")); }
void ReleaseDesignerOutlets() { if (DateLabel != null) { DateLabel.Dispose(); DateLabel = null; } if (FolderStatusImageView != null) { FolderStatusImageView.Dispose(); FolderStatusImageView = null; } if (IndicatorStatusView != null) { IndicatorStatusView.Dispose(); IndicatorStatusView = null; } if (PlaceLabel != null) { PlaceLabel.Dispose(); PlaceLabel = null; } if (SeparatorView != null) { SeparatorView.Dispose(); SeparatorView = null; } if (StatusContainerView != null) { StatusContainerView.Dispose(); StatusContainerView = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } if (UsernameLabel != null) { UsernameLabel.Dispose(); UsernameLabel = null; } }
public UIResultView(object parentView, RectangleF frame, DoneClickDelegate onClick) { View = PlatformView.Create( ); View.AddAsSubview(parentView); View.UserInteractionEnabled = false; StatusLabel = PlatformLabel.Create( ); //StatusBackground = PlatformView.Create( ); ResultSymbol = PlatformLabel.Create( ); ResultLabel = PlatformLabel.Create( ); //ResultBackground = PlatformView.Create( ); ResultCircle = PlatformCircleView.Create( ); ResultCircle.AddAsSubview(parentView); // setup our UI hierarchy //StatusBackground.AddAsSubview( parentView ); //StatusBackground.UserInteractionEnabled = false; //StatusBackground.BorderWidth = .5f; StatusLabel.AddAsSubview(parentView); StatusLabel.UserInteractionEnabled = false; //ResultBackground.AddAsSubview( parentView ); //ResultBackground.UserInteractionEnabled = false; //ResultBackground.BorderWidth = .5f; ResultSymbol.AddAsSubview(parentView); ResultSymbol.UserInteractionEnabled = false; ResultLabel.AddAsSubview(parentView); ResultLabel.UserInteractionEnabled = false; DoneButton = PlatformButton.Create( ); DoneButton.AddAsSubview(parentView); DoneButton.ClickEvent = ( PlatformButton button ) => { if (onClick != null) { onClick( ); } }; // default the view size and opacity SetOpacity(0.00f); SetBounds(frame); // give it a default style SetStyle( ); }
void ReleaseDesignerOutlets() { if (AddressLabel != null) { AddressLabel.Dispose(); AddressLabel = null; } if (AdvisorLabel != null) { AdvisorLabel.Dispose(); AdvisorLabel = null; } if (DateLabel != null) { DateLabel.Dispose(); DateLabel = null; } if (IconImage != null) { IconImage.Dispose(); IconImage = null; } if (NumberLabel != null) { NumberLabel.Dispose(); NumberLabel = null; } if (ReasonLabel != null) { ReasonLabel.Dispose(); ReasonLabel = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } if (TimeLabel != null) { TimeLabel.Dispose(); TimeLabel = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } }
private void Banks_UC_MouseClick(object sender, MouseEventArgs e) { IDTextField.Text = ""; NameTextField.Text = ""; AddressTextField.Text = ""; SearchIDTextField.Text = ""; StatusLabel.Hide(); bankDatagridview(); }
public void UpdateStatusLabel(string status) { if (StatusLabel.InvokeRequired) { StatusLabel.Invoke(new Action <string>(UpdateStatusLabel), status); return; } label1.Text = status; }
public IssueContextMenu(JiraIssueListModel model, StatusLabel status, TreeViewAdv tree, ToolStripMenuItem[] items) { this.model = model; this.status = status; this.tree = tree; this.items = items; Items.Add("dummy"); Opened += issueContextMenuOpened; Opening += issueContextMenuOpening; }