public void ClearAll() { OpenControl(); ClearAllButton.Click(); CloseControl(); }
private void load(OsuColour colours) { RelativeSizeAxes = Axes.X; AutoSizeAxes = Axes.Y; Direction = FillDirection.Vertical; Padding = new MarginPadding { Top = 10, Bottom = 5, Right = 20, Left = 20, }; AddRangeInternal(new Drawable[] { new Container { RelativeSizeAxes = Axes.X, AutoSizeAxes = Axes.Y, Children = new Drawable[] { clearButton = new ClearAllButton { Text = clearText, Anchor = Anchor.TopRight, Origin = Anchor.TopRight, Action = clearAll }, new FillFlowContainer { Margin = new MarginPadding { Bottom = 5 }, Spacing = new Vector2(5, 0), AutoSizeAxes = Axes.Both, Children = new Drawable[] { titleText = new OsuSpriteText { Text = title.ToUpper(), Font = @"Exo2.0-Black", }, countText = new OsuSpriteText { Text = "3", Colour = colours.Yellow, Font = @"Exo2.0-Black", }, } }, }, }, notifications = new FillFlowContainer <Notification> { AutoSizeAxes = Axes.Y, RelativeSizeAxes = Axes.X, LayoutDuration = 150, LayoutEasing = Easing.OutQuart, Spacing = new Vector2(3), } }); }
private void DoorForm_updated_KeyDown(object sender, KeyEventArgs e) { //one if (e.KeyCode.Equals(Keys.NumPad1)) { oneButton.PerformClick(); } //two if (e.KeyCode.Equals(Keys.NumPad2)) { twoButton.PerformClick(); } if (e.KeyCode.Equals(Keys.NumPad3)) { threeButton.PerformClick(); } if (e.KeyCode.Equals(Keys.NumPad4)) { fourButton.PerformClick(); } if (e.KeyCode.Equals(Keys.NumPad5)) { fiveButton.PerformClick(); } if (e.KeyCode.Equals(Keys.NumPad6)) { sixButton.PerformClick(); } if (e.KeyCode.Equals(Keys.NumPad7)) { sevenButton.PerformClick(); } if (e.KeyCode.Equals(Keys.NumPad8)) { eightButton.PerformClick(); } if (e.KeyCode.Equals(Keys.NumPad9)) { nineButton.PerformClick(); } if (e.KeyCode.Equals(Keys.NumPad0)) { ZeroButton.PerformClick(); } if (e.KeyCode.Equals(Keys.Multiply)) { ScreenLabel.Enabled = true; starButton.PerformClick(); } if (e.KeyCode.Equals(Keys.Back)) { DeleteButton.PerformClick(); } if (e.KeyCode.Equals(Keys.Delete)) { ClearAllButton.PerformClick(); } }