void CustomKeywordBtnClick(object sender, EventArgs e) { var f = new CustomKeywordForm(int.Parse(form.config.get("fontSize")), true, customKw); f.ShowDialog(); if (f.ret == null) { if (f.DialogResult == DialogResult.OK) { customKeywordBtn.Text = "カスタム設定"; customKw = null; } return; } customKw = f.ret; customKeywordBtn.Text = "カスタム設定(" + customKw[0].name + ")"; }
void CustomKeywordBtnClick(object sender, EventArgs e) { var f = new CustomKeywordForm(true, customKw); f.ShowDialog(); if (f.ret == null) { if (f.DialogResult == DialogResult.OK) { customKeywordBtn.Text = "カスタム設定(未設定)"; customKw = null; } return; } customKw = f.ret; customKeywordBtn.Text = "カスタム設定(" + customKw[0].name + ")"; }
void CustomListCellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex != 3) { return; } if (customKwListDataSource[e.RowIndex].type != "条件の入れ子") { return; } var f = new CustomKeywordForm(fontSize, false, customKwListDataSource[e.RowIndex].cki); f.ShowDialog(); if (f.ret == null) { return; } customKwListDataSource[e.RowIndex].cki = f.ret; infoLabel.Text = JToken.FromObject(f.ret).ToString(Formatting.None); //customKwListDataSource[e.RowIndex].str = // JToken.FromObject(f.ret).ToString(Formatting.None); }