Esempio n. 1
0
        static void StartExcel(ConfigSettings settings)
        {
            var data   = settings.GridSettings?.getActualData();
            var styles = new List <GridCellsAppearance>();

            DefaultData.AddStyles(styles);

            var     rainbow = styles.FirstOrDefault(x => x.name.Equals("RAINBOW"));
            ToExcel test    = new ToExcel(data);

            test.AsyncCreate().Wait();
            test.Visible = true;
        }
Esempio n. 2
0
        static void Main()
        {
            ConfigSettings settings = new ConfigSettings();

            if (settings.GridSettings == null)
            {
                DefaultData.InitTableSettings(settings);
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            FormMain frmMain = new FormMain(settings);

            frmMain.AddTableControls += DefaultData.AddTableControls;
            frmMain.AddStyles        += DefaultData.AddStyles;
            frmMain.ExportExcel      += DefaultData.ExportExcel;

            var path = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal).FilePath;

            Console.WriteLine("CONFIGURATION: " + path);

            Application.Run(frmMain);
        }