public void NextManualItem() { if (ManualSelect.Count() < 1) { this.Close(); return; } //Check if the items checked status has been changed, most likely by CheckEntrancePair. if (ActionDic.ContainsKey(ManualSelect[0].ID) && ActionDic[ManualSelect[0].ID] != ManualSelect[0].Checked && ManualSelect[0].IsEntrance()) { ManualSelect.RemoveAt(0); NextManualItem(); return; } if (ManualSelect[0].ItemSubType.ToLower().Contains("setting")) { this.Text = $"Setting: {ManualSelect[0].LocationName ?? ManualSelect[0].DictionaryName}"; } else if (ManualSelect[0].ItemSubType.ToLower().Contains("dungeon")) { this.Text = $"Dungeon at: {ManualSelect[0].LocationName ?? ManualSelect[0].DictionaryName}"; } else if (ManualSelect[0].IsEntrance()) { this.Text = $"Exit at: {ManualSelect[0].LocationName ?? ManualSelect[0].DictionaryName}"; } else { this.Text = $"Item at: {ManualSelect[0].LocationName ?? ManualSelect[0].DictionaryName}"; } TXTSearch.Clear(); TXTSearch.Focus(); WriteItems(ManualSelect[0]); }
private void TXTSearch_MouseUp(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Middle) { TXTSearch.Clear(); } }
private void CheckItemForm_Shown(object sender, EventArgs e) { TXTSearch.Clear(); TXTSearch.Focus(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { TXTSearch.Focus(); PushAll(); }