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; }
private IEnumerable <IResult> Exit() { _shell.Close(); yield break; }
public override Task Run(Command command) { _shell.Close(); return(TaskUtility.Completed); }
private void CloseCommandExecute() { IShell shell = containerProvider.Resolve <IShell>(); shell.Close(); }
private async Task Exit() { _shell.Close(); }
private void CloseCommandExecute() { IShell shell = VEFModule.UnityContainer.Resolve(typeof(IShell), "") as IShell; shell.Close(); }