//[System.Diagnostics.DebuggerNonUserCodeAttribute()]
        static void Main()
        {
            bool isWPFEnabled = bool.Parse(System.Configuration.ConfigurationManager.AppSettings["IsWPFEnabled"].ToString());

            if (isWPFEnabled == false)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new WindowsForms.Form1());
            }
            else
            {
                System.Windows.Application application = new WPF.App();
                application.Run(new WPF.MainWindow());
            }
        }
Exemplo n.º 2
0
        //[System.Diagnostics.DebuggerNonUserCodeAttribute()]
        static void Main()
        {
            bool isWPFEnabled = bool.Parse(System.Configuration.ConfigurationManager.AppSettings["IsWPFEnabled"].ToString());

            if (isWPFEnabled == false)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new WindowsForms.Form1());
            }
            else
            {
                System.Windows.Application application = new WPF.App();
                application.Run(new WPF.MainWindow());
            }
        }
Exemplo n.º 3
0
        public static void Main()
        {
            WPF.App app = new WPF.App();

            // view
            var mainWindow = new MainWindow();

            var storageRepo  = new StorageRepo();
            var driveStorage = storageRepo.AddStorage(id => new DriveStorage(id));

            var storagePath = new StoragePath(driveStorage.StorageId, @"Z:\\Temp");
            var workspace   = new Workspace(storageRepo, storagePath);

            // viewModel
            mainWindow.DataContext = new MainWindowVM(workspace);

            app.Run(mainWindow);
        }
Exemplo n.º 4
0
 public static void Main()
 {
     WPF.App app = new WPF.App();
     app.InitializeComponent();
     app.Run();
 }
Exemplo n.º 5
0
 public static void Main() {
     WPF.App app = new WPF.App();
     app.InitializeComponent();
     app.Run();
 }