//кнопка очистка private void ClearBut_Click(object sender, EventArgs e) { CountBox.Clear(); WordBox.Clear(); DictionaryGridView.Rows.Clear(); //dataGridView1.DataSource = null; }
private void Reset() { InputBox.IsEnabled = true; VowelButton.IsEnabled = true; ConstButton.IsEnabled = true; ConfirmButton.IsEnabled = true; TimeLeft = 30; ProgressBar.Value = 30; Limit = 0; LabelTimer.Content = "30"; CountBox.Clear(); InputBox.Clear(); PickedChars.Clear(); }
private void Box_Enter(object sender, EventArgs e) { if (NameBox.Focused) { NameBox.SelectAll(); } if (CountBox.Focused) { CountBox.SelectAll(); } if (PriceBox.Focused) { PriceBox.SelectAll(); } }
protected override void Image_KeyDown(object sender, KeyEventArgs e) { base.Image_KeyDown(sender, e); if (e.Key == Key.Right) { if (page < hiyobi.files.Length - 1) { page++; } } else if (e.Key == Key.Left) { if (page > 0) { page--; } } if (e.Key == Key.Right || e.Key == Key.Left) { PreLoad(); SetImage(hiyobi.files[page]); } if (e.Key == Key.Enter) { if (Keyboard.Modifiers == ModifierKeys.Shift) { CountBox countBox = new CountBox("페이지", "원하는 페이지 수", 1); int page = (int)countBox.ShowDialog(); bool success = countBox.success; if (success) { PreLoadAll(0, page); } } else { PreLoadAll(base.page); } } if (Keyboard.Modifiers == ModifierKeys.Control && e.Key == Key.C) { Clipboard.SetImage((BitmapSource)this.image.Source); } }