private void Ribbon1_Load(object sender, RibbonUIEventArgs e) { bool isForbid, isAutoCheck, isAutoClose; ThisAddIn.RedConfig(out isForbid, out isAutoCheck, out isAutoClose); checkBox1.Checked = isForbid; checkBox2.Checked = isAutoCheck; checkBox3.Checked = isAutoClose; }
private void SetConfig() { ThisAddIn.SetConfig(checkBox1.Checked, checkBox2.Checked, checkBox3.Checked); }
private void button2_Click(object sender, RibbonControlEventArgs e) { ThisAddIn.SaveFile(); }