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

            Closing += VM.OnClosing;
        }
Exemplo n.º 2
0
        public SourceMerge()
        {

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

            Closing += VM.OnClosing;
        }
Exemplo 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;
        }
Exemplo n.º 4
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;
        }