Ejemplo n.º 1
0
        //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();
            }
        }
Ejemplo n.º 2
0
        //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();
            }
        }