private void EZCard_Editor_Click(object sender, EventArgs e) { var ezCard = new EZCard_Editor(); string path = CurrentProjectVariables.PathToProjectFiles + "\\Assets\\JSON\\BattleCardDefinitions\\0.json"; ezCard.path = path; }
private void EZCard_Button_Click(object sender, EventArgs e) { if (JSON_Reader.IsValidJson(Editor_TextBox.Text)) { var ezCard = new EZCard_Editor(); ezCard.path = path; ezCard.Show(); } else { ConsoleHandler.force_append_Notice("ERROR! This file doesn't have valid Json. Please fix the Json to continue"); this.Focus(); } }