Esempio n. 1
0
        public SourceMerge()
        {
            InitializeComponent();
            VM = TryFindResource("VM") as S7_ViewModel;
            VM.InitFromCommandLineArguments(App.StartupArgs);

            Closing += VM.OnClosing;
        }
        public SourceMerge()
        {

            InitializeComponent();
            VM = TryFindResource("VM") as S7_ViewModel;
            VM.InitFromCommandLineArguments(App.StartupArgs);

            Closing += VM.OnClosing;
        }
Esempio n. 3
0
        public MainWindow()
        {
            InitializeComponent();
            VM = TryFindResource("VM") as S7_ViewModel;
            VM.InitFromCommandLineArguments(App.StartupArgs);

            //Set title of window to current assembly version number
            if (ApplicationDeployment.IsNetworkDeployed)
            {
                ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment;
                Version myVersion        = ad.CurrentVersion;
                this.Title = this.Title + " v" + myVersion.Major + "." + myVersion.Minor + "." + myVersion.Build;
            }
            Closing += VM.OnClosing;
        }
        public MainWindow()
        {
            InitializeComponent();
            VM = TryFindResource("VM") as S7_ViewModel;
            VM.InitFromCommandLineArguments(App.StartupArgs);

            //Set title of window to current assembly version number
            if (ApplicationDeployment.IsNetworkDeployed)
            {
                ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment;
                Version myVersion = ad.CurrentVersion;
                this.Title = this.Title + " v" + myVersion.Major + "." + myVersion.Minor + "." + myVersion.Build;
            }
            Closing += VM.OnClosing;
        }