private void OutputLabel_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { ViewContextMenu.Show(OutputLabel, OutputLabel.PointToClient(Cursor.Position)); } }
private void AC_Click(object sender, EventArgs e) { OutputTextbox.Text = "0"; result = 0; OutputLabel.ResetText(); ans = ""; }
void ReleaseDesignerOutlets() { if (Button != null) { Button.Dispose(); Button = null; } if (Play != null) { Play.Dispose(); Play = null; } if (Stop != null) { Stop.Dispose(); Stop = null; } if (OutputLabel != null) { OutputLabel.Dispose(); OutputLabel = null; } }
private void button2_Click(object sender, EventArgs e) { OutputLabel.ResetText(); word_count.ResetText(); counterW.ResetText(); counter = 0; }
private void start_btn_Click(object sender, EventArgs e) { counter = 0; counterW.ResetText(); word_count.Text = ""; OutputLabel.ResetText(); cancelButton = false; while (cancelButton == false) { start_btn.Enabled = false; eventH(sender, e); MonkeyBusinessUI.Interpreter(print, MonkeyBusinessUI.Library.words); } if (cancelButton == true) { foreach (string word in MonkeyBusinessUI.Library.wordsFound) { word_count.Text += word + " "; } } /*word_count.Text += "\n";*/ }
protected void Print(string random) { foreach (char a in print) { OutputLabel.Text += a; OutputLabel.Refresh(); DoEvents(); } }
public MPLSFibRecord(string record) { string[] splitedRecord = record.Split(' '); InputPort = Convert.ToInt32(splitedRecord[0]); InputLabel = Convert.ToInt32(splitedRecord[1]); OutputPort = Convert.ToInt32(splitedRecord[2]); string[] splitedLabel = splitedRecord[3].Split(','); foreach (string label in splitedLabel) { OutputLabel.Add(Convert.ToInt32(label)); } Index = Convert.ToInt32(splitedRecord[4]); }
void ReleaseDesignerOutlets() { if (OutputLabel != null) { OutputLabel.Dispose(); OutputLabel = null; } if (ClickMeButton != null) { ClickMeButton.Dispose(); ClickMeButton = null; } }
private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { if (lastSelectedIndex >= 0) { if (Nodes[lastSelectedIndex].status == DrillNode.DrillNodeStatus.Selected) { Nodes[lastSelectedIndex].status = lastSelectedStatus; } } lastSelectedStatus = Nodes[listBox1.SelectedIndex].status; Nodes[listBox1.SelectedIndex].status = DrillNode.DrillNodeStatus.Selected; lastSelectedIndex = listBox1.SelectedIndex; UpdateNodeColors(); OutputLabel.Refresh(); }
private void eventH(object sender, EventArgs e) { print = Randomizer(); OutputLabel.Text += "\n"; foreach (char a in print) { OutputLabel.Text += a; OutputLabel.Refresh(); counterW.Text = counter++.ToString(); } output = ""; }
public MplsFIBRecord(string line) { string[] splitedline = line.Split(' '); RouterName = splitedline[0]; InputPort = Convert.ToInt32(splitedline[1]); InputLabel = Convert.ToInt32(splitedline[2]); OutputPort = Convert.ToInt32(splitedline[3]); //int[] OutputLabel = Convert.ToInt32(outLabelsTable); Index = Convert.ToInt32(splitedline[5]); //Console.WriteLine(splitedline[0]); string[] outLabelsTable = splitedline[4].Split(','); foreach (string label in outLabelsTable) { OutputLabel.Add(Convert.ToInt32(label)); } }
private void GameManagerOnOutputStringChanged(object sender, EventArgs eventArgs) { OutputLabel.Invoke((MethodInvoker) delegate { OutputLabel.Text = _gameManager.GetOutputString(); }); }
void MainLayout_OnLayoutChildren(double x, double y, double width, double height) { OutputLabel.Layout(new Rectangle(0, 0, width, 200)); }
void MainLayout_OnLayoutChildren(double x, double y, double width, double height) { OutputLabel.Layout(new Rectangle(0, 0, width, 200)); // Box.Layout (_boxBounds); // Box2.Layout (_box2Bounds); }
private void UIupdateTimer_Tick(object sender, EventArgs e) { #region UI update if (USB.IsOpen) { CheckBoxInhibit = true; //fetch data if too old if ((DateTime.Now.Subtract(USB.LastUpdate)).Milliseconds > GlobalProperties.USB_Refresh_Period) { USB.Transfer(); } if (RawUsbForm.Visible) { RawUsbForm.Update(USB.InputBuffer); } else { showRawCheckbox.Checked = false; } XMinStatusLabel.BackColor = !USB.MinXswitch ? Color.Lime : Color.Red; XMaxStatusLabel.BackColor = !USB.MaxXswitch ? Color.Lime : Color.Red; YMinStatusLabel.BackColor = !USB.MinYswitch ? Color.Lime : Color.Red; YMaxStatusLabel.BackColor = !USB.MaxYswitch ? Color.Lime : Color.Red; TopStatusLabel.BackColor = USB.TopSwitch ? Color.Lime : SystemColors.Control; BottomStatusLabel.BackColor = USB.BottomSwitch ? Color.Lime : SystemColors.Control; //reset drill cycle if (checkBoxD.Checked && !USB.TopSwitch && !USB.BottomSwitch) { checkBoxD.Checked = false; } CheckBoxInhibit = false; } #endregion #region View update XStatusLabel.Text = USB.X_Rel_Location.ToString("D5"); YStatusLabel.Text = USB.Y_Rel_Location.ToString("D5"); var curLoc = USB.CurrentLocation(); Xlabel.Text = "X: " + curLoc.X.ToString("F3"); Ylabel.Text = "Y: " + curLoc.Y.ToString("F3"); var snapLocation = GetViewCursorLocation(); cursorCrossHair.UpdatePosition(snapLocation); ViewXLabel.Text = snapLocation.X.ToString("F3"); ViewYLabel.Text = snapLocation.Y.ToString("F3"); ViewZoomLabel.Text = (int)(nodeViewer.ZoomLevel * 100) + "%"; drillCrossHair.UpdatePosition(curLoc.X, curLoc.Y); #endregion #region Refresh required elements if ((DateTime.Now.Subtract(lastUIupdate)).Milliseconds > GlobalProperties.Label_Refresh_Period) { OutputLabel.Refresh(); Xlabel.Refresh(); Ylabel.Refresh(); statusStrip1.Refresh(); logger1.Refresh(); lastUIupdate = DateTime.Now; Application.DoEvents(); } #endregion #region Backup state GlobalProperties.X_Dir = USB.X_Last_Direction; GlobalProperties.Y_Dir = USB.Y_Last_Direction; GlobalProperties.X_Pos = USB.X_Abs_Location; GlobalProperties.Y_Pos = USB.Y_Abs_Location; GlobalProperties.X_Delta = USB.X_Delta; GlobalProperties.Y_Delta = USB.Y_Delta; if ((DateTime.Now.Subtract(GlobalProperties.LastSave)).Milliseconds > GlobalProperties.GlobalProperties_Refresh_Period) { GlobalProperties.SaveProperties(); } #endregion }
private void IGUAL_Click(object sender, EventArgs e) { switch (operacion) { case "X": try { OutputTextbox.Text = (result * double.Parse(OutputTextbox.Text)).ToString(); History_click(OutputTextbox, result.ToString()); ans = OutputTextbox.Text; result = Convert.ToDouble(ans); AnsLebel(ans); OutputTextbox.ResetText(); buttonNUM = ""; break; } catch { break; } case "-": try { OutputTextbox.Text = (result - double.Parse(OutputTextbox.Text)).ToString(); History_click(OutputTextbox, result.ToString()); ans = OutputTextbox.Text; result = Convert.ToDouble(ans); AnsLebel(ans); OutputTextbox.ResetText(); buttonNUM = ""; break; } catch { break; } case "+": try { OutputTextbox.Text = (result + double.Parse(OutputTextbox.Text)).ToString(); History_click(OutputTextbox, result.ToString()); ans = OutputTextbox.Text; result = Convert.ToDouble(ans); AnsLebel(ans); OutputTextbox.ResetText(); buttonNUM = ""; break; } catch { break; } case " ÷": try { if (OutputTextbox.Text == "0") { OutputTextbox.Text = "Math Error"; OutputLabel.ResetText(); break; } OutputTextbox.Text = (result / double.Parse(OutputTextbox.Text)).ToString(); History_click(OutputTextbox, result.ToString()); ans = OutputTextbox.Text; result = Convert.ToDouble(ans); AnsLebel(ans); OutputTextbox.ResetText(); buttonNUM = ""; break; } catch { break; } default: break; } }
void ReleaseDesignerOutlets() { if (Bcover != null) { Bcover.Dispose(); Bcover = null; } if (Beight != null) { Beight.Dispose(); Beight = null; } if (Bfive != null) { Bfive.Dispose(); Bfive = null; } if (Bfour != null) { Bfour.Dispose(); Bfour = null; } if (Bnine != null) { Bnine.Dispose(); Bnine = null; } if (Bone != null) { Bone.Dispose(); Bone = null; } if (BQuitGame != null) { BQuitGame.Dispose(); BQuitGame = null; } if (Bseven != null) { Bseven.Dispose(); Bseven = null; } if (Bsix != null) { Bsix.Dispose(); Bsix = null; } if (Bthree != null) { Bthree.Dispose(); Bthree = null; } if (Btwo != null) { Btwo.Dispose(); Btwo = null; } if (FirstLabel != null) { FirstLabel.Dispose(); FirstLabel = null; } if (FirstLabel2 != null) { FirstLabel2.Dispose(); FirstLabel2 = null; } if (FirstPiece != null) { FirstPiece.Dispose(); FirstPiece = null; } if (OutputLabel != null) { OutputLabel.Dispose(); OutputLabel = null; } if (PlayView != null) { PlayView.Dispose(); PlayView = null; } if (SecondLabel != null) { SecondLabel.Dispose(); SecondLabel = null; } if (SecondLabel2 != null) { SecondLabel2.Dispose(); SecondLabel2 = null; } if (SecondPiece != null) { SecondPiece.Dispose(); SecondPiece = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } }