public UserIceCreamsViewControl() { InitializeComponent(); NevigatorCommand nevigatorCommand = Resources["NevigatorCommand"] as NevigatorCommand; nevigatorCommand.Nevigator = this; }
public ManageControl() { InitializeComponent(); NevigatorCommand nevigatorCommand = Resources["NevigatorCommand"] as NevigatorCommand; nevigatorCommand.Nevigator = this; }
public MainWindow() { InitializeComponent(); //int x = 1; //int y = 2; //string progToRun = @"C:\development\personal\telegramDemo\telegramHendler.py"; //char[] spliter = { '\r' }; //Process proc = new Process(); //proc.StartInfo.FileName = @"C:\Users\itziky\AppData\Local\Programs\Python\Python38-32\python.exe"; //C:\Users\itziky\AppData\Local\Programs\Python\Python38-32\python.exe //proc.StartInfo.RedirectStandardOutput = true; //proc.StartInfo.UseShellExecute = false; //// call hello.py to concatenate passed parameters //proc.StartInfo.Arguments = string.Concat(progToRun, " ", x.ToString(), " ", y.ToString()); //proc.Start(); //StreamReader sReader = proc.StandardOutput; //string[] output = sReader.ReadToEnd().Split(spliter); //foreach (string s in output) // Console.WriteLine(s); //proc.WaitForExit(); NevigatorCommand nevigatorCommand = Resources["NevigatorCommand"] as NevigatorCommand; nevigatorCommand.Nevigator = this; }
public async void LoginDialog(INevigator nevigator) { var view = new LoginDialogControl(); var result = await DialogHost.Show(view, "DialogPlaceHolder"); if (result != null && (result as bool?) == true) { var nevigatorCommand = new NevigatorCommand(); nevigatorCommand.Nevigator = nevigator; nevigatorCommand.Execute(new NevigationCommandParameters("Manage")); } }