public void CloseMainWindow()
 {
     if (mainWindow != null)
     {
         mainWindow.Close();
     }
 }
        private void BindCommands()
        {
            myModel.HardwareInfoCmd     = new UiCommand(HardwareDetailsPressed);
            myModel.ConnectionCmd       = new UiCommand(ConnectPressed);
            myModel.OpenFileCmd         = new UiCommand(FileOpenInvoked);
            myModel.SaveFileCmd         = new UiCommand(FileSaveInvoked);
            myModel.ReadDeviceCmd       = new UiCommand(ReadDevicePressed);
            myModel.WriteDeviceCmd      = new UiCommand(WriteDevicePressed);
            myModel.EraseDeviceCmd      = new UiCommand(EraseDevicePressed);
            myModel.CloseApplicationCmd = new UiCommand(par => myShell.Close());

            myShell.DataContext = myModel;
            myShell.NavigationScreen.DataContext = myModel;
            myScreen.DataContext = myModel;
        }
Exemple #3
0
 private IEnumerable <IResult> Exit()
 {
     _shell.Close();
     yield break;
 }
 public override Task Run(Command command)
 {
     _shell.Close();
     return(TaskUtility.Completed);
 }
Exemple #5
0
        private void CloseCommandExecute()
        {
            IShell shell = containerProvider.Resolve <IShell>();

            shell.Close();
        }
Exemple #6
0
 private async Task Exit()
 {
     _shell.Close();
 }
Exemple #7
0
        private void CloseCommandExecute()
        {
            IShell shell = VEFModule.UnityContainer.Resolve(typeof(IShell), "") as IShell;

            shell.Close();
        }