Пример #1
0
        public UserIceCreamsViewControl()
        {
            InitializeComponent();
            NevigatorCommand nevigatorCommand = Resources["NevigatorCommand"] as NevigatorCommand;

            nevigatorCommand.Nevigator = this;
        }
Пример #2
0
        public ManageControl()
        {
            InitializeComponent();
            NevigatorCommand nevigatorCommand = Resources["NevigatorCommand"] as NevigatorCommand;

            nevigatorCommand.Nevigator = this;
        }
Пример #3
0
        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;
        }
Пример #4
0
        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"));
            }
        }