Ejemplo n.º 1
0
 public void CloseMainWindow()
 {
     if (mainWindow != null)
     {
         mainWindow.Close();
     }
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 private IEnumerable <IResult> Exit()
 {
     _shell.Close();
     yield break;
 }
Ejemplo n.º 4
0
 public override Task Run(Command command)
 {
     _shell.Close();
     return(TaskUtility.Completed);
 }
Ejemplo n.º 5
0
        private void CloseCommandExecute()
        {
            IShell shell = containerProvider.Resolve <IShell>();

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

            shell.Close();
        }