private void OnClickSetOffsets(object sender, EventArgs e) { if (treeView.SelectedNode == null) { return; } if (FontsTileView.SelectedIndices.Count == 0) { return; } int font = (int)treeView.SelectedNode.Tag; int cha = FontsTileView.SelectedIndices[0]; if (_form?.IsDisposed == false) { return; } _form = new FontOffsetForm(font, cha) { TopMost = true }; _form.Show(); }
private void OnClickSetOffsets(object sender, EventArgs e) { if (listView1.SelectedItems.Count <= 0) { return; } int font = (int)treeView.SelectedNode.Tag; int cha = (int)listView1.SelectedItems[0].Tag; if (_form?.IsDisposed == false) { return; } _form = new FontOffsetForm(font, cha) { TopMost = true }; _form.Show(); }