private void btnOk_Click(object sender, EventArgs e)
 {
     tablePerspectiveEditorFrame1.SavePerspective();
     m_per.SaveToFile();
     Close();
     DialogResult = DialogResult.OK;
 }
Exemplo n.º 2
0
        public override void SaveItem(object item, object editem)
        {
            string fn  = Path.Combine(TablePerspectiveAddonType.Instance.GetDirectory(), item.ToString() + ".per");
            var    per = new TablePerspective();

            per.LoadFromFile(fn);
            per.Conditions = (TablePerspectiveConditions)editem;
            per.SaveToFile(fn);
        }