private void HandlePluginLaunch(object sender, EventArgs e) { brushSaveForm form = new brushSaveForm(preferences.filePath); form.ShowDialog(); }
public void NWN2BrushSaver(object sender, KeyEventArgs args) { brushSaveForm form = new brushSaveForm(preferences.filePath); if (preferences.Load.CompareTo(args.KeyData) == 0) { form.loadFile(null, null); } else if (preferences.Save.CompareTo(args.KeyData) == 0) { form.saveFile(null, null); } }