void ReleaseDesignerOutlets() { if (FilterComboBox != null) { FilterComboBox.Dispose(); FilterComboBox = null; } if (NoResultLabel != null) { NoResultLabel.Dispose(); NoResultLabel = null; } if (ResultLabel != null) { ResultLabel.Dispose(); ResultLabel = null; } if (SearchTableView != null) { SearchTableView.Dispose(); SearchTableView = null; } }
public MapPointerForm() { InitializeComponent(); PListSplitsExpandsExplainLabel.Text = ExplainPlistSplitExpands(); FilterComboBox.BeginUpdate(); FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.CONFIG)); FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.OBJECT) + "," + TypeToName(PLIST_TYPE.PALETTE)); FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.ANIMATION) + "," + TypeToName(PLIST_TYPE.ANIMATION2)); FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.MAP)); FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.CHANGE)); FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.EVENT)); if (Program.ROM.RomInfo.version == 6) { FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.WORLDMAP_FE6ONLY)); } FilterComboBox.EndUpdate(); this.InputFormRef = Init(this, IsPlistSplits()); this.InputFormRef.UseWriteProtectionID00 = true; //ID:0x00を書き込み禁止 if (IsPlistSplits()) { PListSplitsExpandsPanel.Hide(); FilterComboBox.Show(); FilterComboBox.SelectedIndex = 0; } else { PListSplitsExpandsPanel.Show(); FilterComboBox.Hide(); this.InputFormRef.ReInitPointer(GetBasePointer(PLIST_TYPE.UNKNOWN)); } }
public MapExitPointForm() { InitializeComponent(); FilterComboBox.Items.Add("Enemy Escape Point"); FilterComboBox.Items.Add("NPC Escape Point"); //フィルターの指定を忘れる人が多いので、アイコンをつけて目立たせる. this.FilterComboBox.OwnerDraw(DrawFilterCombo, DrawMode.OwnerDrawFixed); this.N_InputFormRef = N_Init(this); this.N_InputFormRef.MakeGeneralAddressListContextMenu(true); this.N_InputFormRef.CheckProtectionAddrHigh = false; this.InputFormRef = Init(this); this.InputFormRef.CheckProtectionAddrHigh = false; //マップを最前面に移動する. MapPictureBox.BringToFront(); if (Program.ROM.RomInfo.version() == 6) {//たぶんFE6には、NPC離脱ポインタは存在しない FilterComboBox.Hide(); Set_X_Filter_Note_Message(0); } else { FilterComboBox.SelectedIndex = 0; } }
private void AccountantWindow_Load(object sender, EventArgs e) { Gridviews.accountantgridview = Accountantgridview; foreach (var item in Enum.GetValues(typeof(ProductType))) { FilterComboBox.AddItem(item.ToString()); } Accountantgridview.DataSource = Accountant.AccountantList; Accountantgridview.Refresh(); }
private void PListSplitsExpandsButton_Click(object sender, EventArgs e) { bool r = PListSplitsExpands(); if (!r) { return; } Debug.Assert(IsPlistSplits() == true); this.InputFormRef = Init(this, true); PListSplitsExpandsPanel.Hide(); FilterComboBox.Show(); FilterComboBox.SelectedIndex = 0; }
public MapExitPointForm() { InitializeComponent(); this.N_InputFormRef = N_Init(this); this.N_InputFormRef.MakeGeneralAddressListContextMenu(true); this.InputFormRef = Init(this); //マップを最前面に移動する. MapPictureBox.BringToFront(); if (Program.ROM.RomInfo.version() == 6) {//たぶんFE6には、NPC離脱ポインタは存在しない FilterComboBox.Hide(); } else { FilterComboBox.SelectedIndex = 0; } }
/// <summary> /// Make a shadow copy of the element at the current state which stays available even the element is gone. /// </summary> /// <returns>A shadow copy of the current element.</returns> public new BasicOpenFileDialogData GetDataCopy() { var data = new BasicOpenFileDialogData(); FillData(data); data.InputComboBox = GetSafeData(() => { if (InputComboBox == null) { return(null); } return(InputComboBox.GetDataCopy()); }); data.BreadCrumbBar = GetSafeData(() => { if (BreadCrumbBar == null) { return(null); } return(BreadCrumbBar.GetDataCopy()); }); data.BreadCrumbTextBox = GetSafeData(() => { if (BreadCrumbTextBox == null) { return(null); } return(BreadCrumbTextBox.GetDataCopy()); }); data.FilterComboBox = GetSafeData(() => { if (FilterComboBox == null) { return(null); } return(FilterComboBox.GetDataCopy()); }); data.CancelButton = GetSafeData(() => { if (CancelButton == null) { return(null); } return(CancelButton.GetDataCopy()); }); data.OpenButton = GetSafeData(() => { if (OpenButton == null) { return(null); } return(OpenButton.GetDataCopy()); }); data.FilesList = GetSafeData(() => { if (FilesList == null) { return(null); } return(FilesList.GetDataCopy()); }); data.SearchTextBox = GetSafeData(() => { if (SearchTextBox == null) { return(null); } return(SearchTextBox.GetDataCopy()); }); data.SearchButton = GetSafeData(() => { if (SearchButton == null) { return(null); } return(SearchButton.GetDataCopy()); }); data.FolderTree = GetSafeData(() => { if (FolderTree == null) { return(null); } return(FolderTree.GetDataCopy()); }); data.ToolBar = GetSafeData(() => { if (ToolBar == null) { return(null); } return(ToolBar.GetDataCopy()); }); data.ChangeViewButton = GetSafeData(() => { if (ChangeViewButton == null) { return(null); } return(ChangeViewButton.GetDataCopy()); }); data.ShowPreviewButton = GetSafeData(() => { if (ShowPreviewButton == null) { return(null); } return(ShowPreviewButton.GetDataCopy()); }); data.HelpButton = GetSafeData(() => { if (HelpButton == null) { return(null); } return(HelpButton.GetDataCopy()); }); return(data); }
public LogView() { this.Orientation = Orientation.Vertical; var filterSelector = new FilterComboBox(); filterSelector.FilterChanged += (sender, filter) => this.messageStore.Filter = filter; var toolbar = new StackLayout { Orientation = Orientation.Horizontal, Padding = new Padding(0, 5, 0, 0), Spacing = 5, HorizontalContentAlignment = HorizontalAlignment.Left, Items = { filterSelector, new Button((sender, e) => Copy(this.messageStore)) { Text = "Copy All" } } }; var copyCommand = new Command((sender, e) => Copy(messageList.SelectedItems)) { MenuText = "Copy" }; messageList.ContextMenu = new ContextMenu { Items = { copyCommand } }; messageList.DataStore = this.messageStore; this.messageStore.CollectionChanged += (sender, e) => { Application.Instance.AsyncInvoke(() => { if (this.messageStore.Count > 0) { if (messageList.SelectedRow == -1) { messageList.ScrollToRow(this.messageStore.Count - 1); } else { messageList.ScrollToRow(messageList.SelectedRow); } } }); }; this.Items.Add(new StackLayoutItem(messageList, HorizontalAlignment.Stretch, true)); this.Items.Add(new StackLayoutItem(toolbar, HorizontalAlignment.Stretch)); _ = InitializeAsync(); }