public static void Show() { var formOpt = new FormOptions((Options)Instance.MemberwiseClone()); if (Application.ShowModalDialog(formOpt) == System.Windows.Forms.DialogResult.OK) { _instance = formOpt.Options; _instance.Save(); } }
//private static Options DefaultOptions() //{ // Options options = new Options(); // options.LogFileName = "AR_ExportApartment_Log.xlsx"; // options.BlockApartmentNameMatch = "квартира"; // return options; //} public static void Show() { FormOptions formOpt = new FormOptions((Options)Instance.MemberwiseClone()); if (Application.ShowModalDialog(formOpt) == System.Windows.Forms.DialogResult.OK) { _instance = formOpt.Options; _instance.Save(); } }