Exemple #1
0
        public HtmlEditor(WorkFrame frame)
            : base(frame)
        {
            Panel        = new TabControl();
            Panel.Height = 640;

            TabItem editTab = new TabItem();

            editTab.Header = "编辑";
            TextBox textBox = new TextBox();

            textBox.DataContext = this;
            var binding = new Binding("Value");

            binding.Mode = BindingMode.TwoWay;
            textBox.SetBinding(TextBox.TextProperty, binding);
            editTab.Content = textBox;

            TabItem viewTab = new TabItem();

            viewTab.Header  = "预览";
            Browser         = new WebBrowser();
            viewTab.Content = Browser;

            Panel.Items.Add(editTab);
            Panel.Items.Add(viewTab);

            Panel.SelectionChanged += panel_SelectionChanged;

            Content = Panel;
        }
Exemple #2
0
        public ImageEditor(WorkFrame frame)
            : base(frame)
        {
            StackPanel panel = new StackPanel();
            panel.Orientation = Orientation.Horizontal;

            Image = new Image();
            Image.Width = 160;
            Image.Height = 160;
            Image.Stretch = System.Windows.Media.Stretch.Uniform;
            panel.Children.Add(Image);

            Button select = new Button();
            select.Content = "选择";
            select.Click += select_Click;
            select.FontSize = 12;
            select.VerticalAlignment = System.Windows.VerticalAlignment.Center;

            Button remove = new Button();
            remove.Content = "清除";
            remove.Click += remove_Click;
            remove.FontSize = 12;
            remove.VerticalAlignment = System.Windows.VerticalAlignment.Center;

            panel.Children.Add(select);
            panel.Children.Add(remove);

            Content = panel;
        }
Exemple #3
0
        public HtmlEditor(WorkFrame frame)
            : base(frame)
        {
            Panel = new TabControl();
            Panel.Height = 640;

            TabItem editTab = new TabItem();
            editTab.Header = "编辑";
            TextBox textBox = new TextBox();
            textBox.DataContext = this;
            var binding = new Binding("Value");
            binding.Mode = BindingMode.TwoWay;
            textBox.SetBinding(TextBox.TextProperty, binding);
            editTab.Content = textBox;

            TabItem viewTab = new TabItem();
            viewTab.Header = "预览";
            Browser = new WebBrowser();
            viewTab.Content = Browser;

            Panel.Items.Add(editTab);
            Panel.Items.Add(viewTab);

            Panel.SelectionChanged += panel_SelectionChanged;

            Content = Panel;
        }
Exemple #4
0
        public DateTimeEditor(WorkFrame frame)
            : base(frame)
        {
            StackPanel panel = new StackPanel();
            panel.Orientation = Orientation.Horizontal;
                        
            time = new TextBox();
            time.DataContext = this;
            time.Width = 64;
            var timeBinding = new Binding("Value");
            timeBinding.Mode = BindingMode.TwoWay;
            timeBinding.Converter = this;
            time.SetBinding(TextBox.TextProperty, timeBinding);
            
            date = new DatePicker();
            date.DataContext = this;
            var dateBinding = new Binding("Value");
            dateBinding.Converter = new DateConvert(time);
            dateBinding.Mode = BindingMode.TwoWay;
            date.SetBinding(DatePicker.SelectedDateProperty, dateBinding);

            Button now = new Button();
            now.Content = "当前时间";
            now.Click += (s, e) => Value = DateTime.Now;
            
            panel.Children.Add(date);
            panel.Children.Add(time);
            panel.Children.Add(now);

            Content = panel;
        }
        public DateTimeEditor(WorkFrame frame)
            : base(frame)
        {
            StackPanel panel = new StackPanel();

            panel.Orientation = Orientation.Horizontal;

            time             = new TextBox();
            time.DataContext = this;
            time.Width       = 64;
            var timeBinding = new Binding("Value");

            timeBinding.Mode      = BindingMode.TwoWay;
            timeBinding.Converter = this;
            time.SetBinding(TextBox.TextProperty, timeBinding);

            date             = new DatePicker();
            date.DataContext = this;
            var dateBinding = new Binding("Value");

            dateBinding.Converter = new DateConvert(time);
            dateBinding.Mode      = BindingMode.TwoWay;
            date.SetBinding(DatePicker.SelectedDateProperty, dateBinding);

            Button now = new Button();

            now.Content = "当前时间";
            now.Click  += (s, e) => Value = DateTime.Now;

            panel.Children.Add(date);
            panel.Children.Add(time);
            panel.Children.Add(now);

            Content = panel;
        }
Exemple #6
0
        public ImageUrlEditor(WorkFrame frame)
            : base(frame)
        {
            StackPanel panel = new StackPanel();

            panel.Orientation = Orientation.Horizontal;

            TextBox url = new TextBox();

            url.Width       = 320;
            url.DataContext = this;
            var binding = new Binding("Value");

            binding.Mode = BindingMode.TwoWay;
            url.SetBinding(TextBox.TextProperty, binding);

            Image Image = new Image();

            Image.Width   = 160;
            Image.Height  = 160;
            Image.Stretch = System.Windows.Media.Stretch.UniformToFill;
            panel.Children.Add(Image);

            panel.Children.Add(url);
            panel.Children.Add(Image);
        }
Exemple #7
0
        public ImageEditor(WorkFrame frame)
            : base(frame)
        {
            StackPanel panel = new StackPanel();

            panel.Orientation = Orientation.Horizontal;

            Image         = new Image();
            Image.Width   = 160;
            Image.Height  = 160;
            Image.Stretch = System.Windows.Media.Stretch.Uniform;
            panel.Children.Add(Image);

            Button select = new Button();

            select.Content           = "选择";
            select.Click            += select_Click;
            select.FontSize          = 12;
            select.VerticalAlignment = System.Windows.VerticalAlignment.Center;

            Button remove = new Button();

            remove.Content           = "清除";
            remove.Click            += remove_Click;
            remove.FontSize          = 12;
            remove.VerticalAlignment = System.Windows.VerticalAlignment.Center;

            panel.Children.Add(select);
            panel.Children.Add(remove);

            Content = panel;
        }
Exemple #8
0
        private void OnClickConfigProcess(object sender, MouseButtonEventArgs e)
        {
            var itb = sender as XTabItemImage;

            if (null == itb)
            {
                return;
            }

            if (null == Tool.ProcessManager.ProcessManager.This)
            {
                WorkFrame.Navigate(new Tool.ProcessManager.ProcessManager());
            }


            if (null == Tool.ProcessConfig.ProcessConfig.This)
            {
                WorkFrame.Navigate(new Tool.ProcessConfig.ProcessConfig());
            }
            else
            {
                WorkFrame.Navigate(Tool.ProcessConfig.ProcessConfig.This);
                Tool.ProcessConfig.ProcessConfig.This.Refresh();
            }
        }
        public BoolEditor(WorkFrame frame)
            : base(frame)
        {
            StackPanel panel = new StackPanel();

            panel.Orientation = Orientation.Horizontal;

            RadioButton yes = new RadioButton();

            yes.DataContext = this;
            yes.GroupName   = "Bool";
            yes.Content     = "是";
            panel.Children.Add(yes);

            RadioButton no = new RadioButton();

            no.GroupName = "Bool";
            no.Content   = "否";
            panel.Children.Add(no);

            var binding = new Binding("Value");

            binding.Mode = BindingMode.TwoWay;
            yes.SetBinding(RadioButton.IsCheckedProperty, binding);

            Content = panel;
        }
Exemple #10
0
        public SexEditor(WorkFrame frame)
            : base(frame)
        {
            StackPanel panel = new StackPanel();

            panel.Orientation = Orientation.Horizontal;

            RadioButton girl = new RadioButton();

            girl.GroupName = "Sex";
            girl.Content   = "女";
            panel.Children.Add(girl);

            RadioButton boy = new RadioButton();

            boy.DataContext = this;
            boy.GroupName   = "Sex";
            boy.Content     = "男";
            panel.Children.Add(boy);

            var binding = new Binding("Value");

            binding.Mode = BindingMode.TwoWay;
            boy.SetBinding(RadioButton.IsCheckedProperty, binding);

            Content = panel;
        }
Exemple #11
0
        public CollectionEditor(WorkFrame frame, Type type)
            : base(frame)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }
            Type = type;

            CustomSetter = new EditorPropertySetter(Setter);

            Grid panel = new Grid();

            panel.ColumnDefinitions.Add(new ColumnDefinition {
                Width = new GridLength(320, GridUnitType.Pixel)
            });
            panel.ColumnDefinitions.Add(new ColumnDefinition {
                Width = new GridLength(1, GridUnitType.Star)
            });
            panel.RowDefinitions.Add(new RowDefinition {
                Height = new GridLength(1, GridUnitType.Star)
            });
            panel.RowDefinitions.Add(new RowDefinition {
                Height = new GridLength(1, GridUnitType.Star)
            });

            List                   = new ListBox();
            List.Height            = 120;
            List.SelectionChanged += List_SelectionChanged;
            List.BorderThickness   = new Thickness(1);
            Grid.SetRowSpan(List, 2);
            panel.Children.Add(List);

            Add                     = new Button();
            Add.Height              = 32;
            Add.Width               = 64;
            Add.FontSize            = 12;
            Add.Content             = "添加";
            Add.Click              += Add_Click;
            Add.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            Grid.SetColumn(Add, 1);
            panel.Children.Add(Add);

            Remove                     = new Button();
            Remove.Height              = 32;
            Remove.Width               = 64;
            Remove.FontSize            = 12;
            Remove.Content             = "删除";
            Remove.IsEnabled           = false;
            Remove.Click              += Remove_Click;
            Remove.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            Grid.SetColumn(Remove, 1);
            Grid.SetRow(Remove, 1);
            panel.Children.Add(Remove);

            Content = panel;

            Frame.NavigationService.Navigated += NavigationService_Navigated;
        }
Exemple #12
0
        public PasswordEditor(WorkFrame frame)
            : base(frame)
        {
            CustomSetter = new EditorPropertySetter(SetPassword);

            password = new PasswordBox();
            password.PasswordChanged += password_PasswordChanged;
            Content = password;
        }
Exemple #13
0
        public PasswordEditor(WorkFrame frame)
            : base(frame)
        {
            CustomSetter = new EditorPropertySetter(SetPassword);

            password = new PasswordBox();
            password.PasswordChanged += password_PasswordChanged;
            Content = password;
        }
Exemple #14
0
 public UrlEditor(WorkFrame frame)
     : base(frame)
 {
     TextBox textBox = new TextBox();
     textBox.DataContext = this;
     var binding = new Binding("Value");
     binding.Mode = BindingMode.TwoWay;
     textBox.SetBinding(TextBox.TextProperty, binding);
     Content = textBox;
 }
Exemple #15
0
 public DefaultEditor(WorkFrame frame)
     : base(frame)
 {
     IsAllowdEmpty = false;
     TextBox textBox = new TextBox();
     textBox.DataContext = this;
     var binding = new Binding("Value");
     binding.Mode = BindingMode.TwoWay;
     textBox.SetBinding(TextBox.TextProperty, binding);
     Content = textBox;
 }
Exemple #16
0
 public TimeEditor(WorkFrame frame)
     : base(frame)
 {
     var time = new TextBox();
     time.DataContext = this;
     var timeBinding = new Binding("Value");
     timeBinding.Mode = BindingMode.TwoWay;
     timeBinding.Converter = this;
     time.SetBinding(TextBox.TextProperty, timeBinding);
     Content = time;
 }
Exemple #17
0
        public PhoneNumberEditor(WorkFrame frame)
            : base(frame)
        {
            TextBox textBox = new TextBox();
            textBox.DataContext = this;
            textBox.PreviewKeyDown += textBox_PreviewKeyDown;
            var binding = new Binding("Value");
            binding.Mode = BindingMode.TwoWay;
            textBox.SetBinding(TextBox.TextProperty, binding);

            Content = textBox;
        }
Exemple #18
0
        public UrlEditor(WorkFrame frame)
            : base(frame)
        {
            TextBox textBox = new TextBox();

            textBox.DataContext = this;
            var binding = new Binding("Value");

            binding.Mode = BindingMode.TwoWay;
            textBox.SetBinding(TextBox.TextProperty, binding);
            Content = textBox;
        }
Exemple #19
0
        public ComboBoxEditor(WorkFrame frame, object[] items)
            : base(frame)
        {
            ComboBox comboBox = new ComboBox();
            comboBox.DataContext = this;
            comboBox.ItemsSource = items;
            var binding = new Binding("Value");
            binding.Mode = BindingMode.TwoWay;
            comboBox.SetBinding(ComboBox.SelectedItemProperty, binding);

            Content = comboBox;
        }
 public void SwitchFrame(WorkFrame frame)
 {
     if (window == null)
     {
         throw new InvalidOperationException("未载入窗体。");
     }
     if (frame == null)
     {
         throw new ArgumentNullException("frame");
     }
     window.SwitchFrame(frame);
 }
        public DefaultEditor(WorkFrame frame)
            : base(frame)
        {
            IsAllowdEmpty = false;
            TextBox textBox = new TextBox();

            textBox.DataContext = this;
            var binding = new Binding("Value");

            binding.Mode = BindingMode.TwoWay;
            textBox.SetBinding(TextBox.TextProperty, binding);
            Content = textBox;
        }
Exemple #22
0
        public TimeEditor(WorkFrame frame)
            : base(frame)
        {
            var time = new TextBox();

            time.DataContext = this;
            var timeBinding = new Binding("Value");

            timeBinding.Mode      = BindingMode.TwoWay;
            timeBinding.Converter = this;
            time.SetBinding(TextBox.TextProperty, timeBinding);
            Content = time;
        }
Exemple #23
0
        public PhoneNumberEditor(WorkFrame frame)
            : base(frame)
        {
            TextBox textBox = new TextBox();

            textBox.DataContext     = this;
            textBox.PreviewKeyDown += textBox_PreviewKeyDown;
            var binding = new Binding("Value");

            binding.Mode = BindingMode.TwoWay;
            textBox.SetBinding(TextBox.TextProperty, binding);

            Content = textBox;
        }
Exemple #24
0
        public ComboBoxEditor(WorkFrame frame, object[] items)
            : base(frame)
        {
            ComboBox comboBox = new ComboBox();

            comboBox.DataContext = this;
            comboBox.ItemsSource = items;
            var binding = new Binding("Value");

            binding.Mode = BindingMode.TwoWay;
            comboBox.SetBinding(ComboBox.SelectedItemProperty, binding);

            Content = comboBox;
        }
Exemple #25
0
        public CollectionEditor(WorkFrame frame, Type type)
            : base(frame)
        {
            if (type == null)
                throw new ArgumentNullException("type");
            Type = type;

            CustomSetter = new EditorPropertySetter(Setter);

            Grid panel = new Grid();
            panel.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(320, GridUnitType.Pixel) });
            panel.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) });
            panel.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Star) });
            panel.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Star) });

            List = new ListBox();
            List.Height = 120;
            List.SelectionChanged += List_SelectionChanged;
            List.BorderThickness = new Thickness(1);
            Grid.SetRowSpan(List, 2);
            panel.Children.Add(List);

            Add = new Button();
            Add.Height = 32;
            Add.Width = 64;
            Add.FontSize = 12;
            Add.Content = "添加";
            Add.Click += Add_Click;
            Add.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            Grid.SetColumn(Add, 1);
            panel.Children.Add(Add);

            Remove = new Button();
            Remove.Height = 32;
            Remove.Width = 64;
            Remove.FontSize = 12;
            Remove.Content = "删除";
            Remove.IsEnabled = false;
            Remove.Click += Remove_Click;
            Remove.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            Grid.SetColumn(Remove, 1);
            Grid.SetRow(Remove, 1);
            panel.Children.Add(Remove);

            Content = panel;

            Frame.NavigationService.Navigated += NavigationService_Navigated;
        }
        private void SignInButton_Click(object sender, RoutedEventArgs e)
        {
            string login    = LoginTextBox.Text;
            string password = InPasswordBox.Password;
            User   user     = null;

            if (login != "root")
            {
                user = User.GetUser(databaseManager, login);
            }

            if (Credential.SignIn(databaseManager, encryptionHelper, new SignInRequest()
            {
                Login = login, Password = password
            }).Message == "Authenticated")
            {
                if (login == "root")
                {
                    if (radioButtons != null)
                    {
                        foreach (RadioButton radio in radioButtons)
                        {
                            if (radio.Content.ToString() == "Admin Profile")
                            {
                                radio.Visibility = Visibility.Visible;
                                radio.IsEnabled  = true;
                            }
                        }
                    }
                    WorkFrame.Navigate(typeof(DataGrid), radioButtons);
                }
                else if (login != "root")
                {
                    if (radioButtons != null)
                    {
                        foreach (RadioButton radio in radioButtons)
                        {
                            if (radio.Content.ToString() == "Doctor Profile")
                            {
                                radio.Visibility = Visibility.Visible;
                                radio.IsEnabled  = true;
                            }
                        }
                    }
                    WorkFrame.Navigate(typeof(MonitorPage), user);
                }
            }
        }
        public MultilineTextEditor(WorkFrame frame)
            : base(frame)
        {
            TextBox textBox = new TextBox();
            textBox.MaxHeight = 320;
            textBox.DataContext = this;
            textBox.AcceptsReturn = true;
            textBox.AcceptsTab = true;
            textBox.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;
            textBox.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
            textBox.TextWrapping = System.Windows.TextWrapping.NoWrap;
            var binding = new Binding("Value");
            binding.Mode = BindingMode.TwoWay;
            textBox.SetBinding(TextBox.TextProperty, binding);

            Content = textBox;
        }
Exemple #28
0
        public DateEditor(WorkFrame frame)
            : base(frame)
        {
            StackPanel panel = new StackPanel();
            panel.Orientation = Orientation.Horizontal;

            DatePicker date = new DatePicker();
            date.Width = 120;
            date.DataContext = this;
            var binding = new Binding("Value");
            binding.Mode = BindingMode.TwoWay;
            date.SetBinding(DatePicker.SelectedDateProperty, binding);

            panel.Children.Add(date);

            Content = panel;
        }
Exemple #29
0
        private void OnClickTransfer(object sender, MouseButtonEventArgs e)
        {
            var itb = sender as XTabItemImage;

            if (null == itb)
            {
                return;
            }

            if (null == Tool.TransferPanel.FileTransferPage.This)
            {
                WorkFrame.Navigate(new Tool.TransferPanel.FileTransferPage());
            }
            else
            {
                WorkFrame.Navigate(Tool.TransferPanel.FileTransferPage.This);
            }
        }
        public EntityEditor(WorkFrame frame, Type type)
            : base(frame)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }
            Type = type;



            StackPanel panel = new StackPanel();

            panel.Orientation = Orientation.Horizontal;

            text             = new TextBox();
            text.DataContext = this;
            text.MinWidth    = 240;
            text.IsReadOnly  = true;
            var timeBinding = new Binding("Value");

            timeBinding.Mode = BindingMode.TwoWay;
            text.SetBinding(TextBox.TextProperty, timeBinding);

            Button select = new Button();

            select.Content  = "选择";
            select.Click   += select_Click;
            select.FontSize = 12;

            Button remove = new Button();

            remove.Content  = "清除";
            remove.Click   += remove_Click;
            remove.FontSize = 12;

            panel.Children.Add(text);
            panel.Children.Add(select);
            panel.Children.Add(remove);

            Content = panel;

            frame.NavigationService.Navigated += NavigationService_Navigated;
        }
Exemple #31
0
        private void OnClickCarConfig(object sender, MouseButtonEventArgs e)
        {
            var itb = sender as XTabItemImage;

            if (null == itb)
            {
                return;
            }

            if (null == Tool.CarHouse.CartHousePage.This)
            {
                WorkFrame.Navigate(new Tool.CarHouse.CartHousePage());
            }
            else
            {
                WorkFrame.Navigate(Tool.CarHouse.CartHousePage.This);
                Tool.CarHouse.CartHousePage.This.SetCheck();
            }
        }
Exemple #32
0
        private void OnClickUpdateSoftware(object sender, MouseButtonEventArgs e)
        {
            var itb = sender as XTabItemImage;

            if (null == itb)
            {
                return;
            }

            if (null == Tool.UpdateBin.UpdateBin.This)
            {
                WorkFrame.Navigate(new Tool.UpdateBin.UpdateBin());
            }
            else
            {
                WorkFrame.Navigate(Tool.UpdateBin.UpdateBin.This);
                Tool.UpdateBin.UpdateBin.This.refresh();
            }
        }
        public MultilineTextEditor(WorkFrame frame)
            : base(frame)
        {
            TextBox textBox = new TextBox();

            textBox.MaxHeight     = 320;
            textBox.DataContext   = this;
            textBox.AcceptsReturn = true;
            textBox.AcceptsTab    = true;
            textBox.VerticalScrollBarVisibility   = ScrollBarVisibility.Auto;
            textBox.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
            textBox.TextWrapping = System.Windows.TextWrapping.NoWrap;
            var binding = new Binding("Value");

            binding.Mode = BindingMode.TwoWay;
            textBox.SetBinding(TextBox.TextProperty, binding);

            Content = textBox;
        }
Exemple #34
0
        public DateEditor(WorkFrame frame)
            : base(frame)
        {
            StackPanel panel = new StackPanel();

            panel.Orientation = Orientation.Horizontal;

            DatePicker date = new DatePicker();

            date.Width       = 120;
            date.DataContext = this;
            var binding = new Binding("Value");

            binding.Mode = BindingMode.TwoWay;
            date.SetBinding(DatePicker.SelectedDateProperty, binding);

            panel.Children.Add(date);

            Content = panel;
        }
Exemple #35
0
        public ImageUrlEditor(WorkFrame frame)
            : base(frame)
        {
            StackPanel panel = new StackPanel();
            panel.Orientation = Orientation.Horizontal;

            TextBox url = new TextBox();
            url.Width = 320;
            url.DataContext = this;
            var binding = new Binding("Value");
            binding.Mode = BindingMode.TwoWay;
            url.SetBinding(TextBox.TextProperty, binding);

            Image Image = new Image();
            Image.Width = 160;
            Image.Height = 160;
            Image.Stretch = System.Windows.Media.Stretch.UniformToFill;
            panel.Children.Add(Image);

            panel.Children.Add(url);
            panel.Children.Add(Image);
        }
Exemple #36
0
        public BoolEditor(WorkFrame frame)
            : base(frame)
        {
            StackPanel panel = new StackPanel();
            panel.Orientation = Orientation.Horizontal;

            RadioButton yes = new RadioButton();
            yes.DataContext = this;
            yes.GroupName = "Bool";
            yes.Content = "是";
            panel.Children.Add(yes);

            RadioButton no = new RadioButton();
            no.GroupName = "Bool";
            no.Content = "否";
            panel.Children.Add(no);

            var binding = new Binding("Value");
            binding.Mode = BindingMode.TwoWay;
            yes.SetBinding(RadioButton.IsCheckedProperty, binding);

            Content = panel;
        }
Exemple #37
0
        public SexEditor(WorkFrame frame)
            : base(frame)
        {
            StackPanel panel = new StackPanel();
            panel.Orientation = Orientation.Horizontal;

            RadioButton girl = new RadioButton();
            girl.GroupName = "Sex";
            girl.Content = "女";
            panel.Children.Add(girl);

            RadioButton boy = new RadioButton();
            boy.DataContext = this;
            boy.GroupName = "Sex";
            boy.Content = "男";
            panel.Children.Add(boy);

            var binding = new Binding("Value");
            binding.Mode = BindingMode.TwoWay;
            boy.SetBinding(RadioButton.IsCheckedProperty, binding);

            Content = panel;
        }
 private void BackButton_Checked(object sender, RoutedEventArgs e)
 {
     WorkFrame.Navigate(typeof(IntroPage));
 }
Exemple #39
0
 public void NaviToPageConfig(string ep, Proto.ProtoFolderList list, int SelectIndex)
 {
     WorkFrame.Navigate(new Tool.P2PConfig.P2PConfig(ep, list, SelectIndex));
 }
Exemple #40
0
 private void MainWindowsLoaded(object sender, RoutedEventArgs e)
 {
     WorkFrame.NavigationUIVisibility = NavigationUIVisibility.Hidden;
     WorkFrame.Navigate(new Tool.RobotsHome.RobotsHome());
 }
Exemple #41
0
 internal NavigationService(WorkFrame frame)
 {
     Frame   = frame;
     History = new Stack <WorkPage>();
 }
Exemple #42
0
 public void GotoHomeConfig()
 {
     WorkFrame.Navigate(Tool.RobotsHome.RobotsHome.This);
     Tool.RobotsHome.RobotsHome.This.SetCheck();
 }
Exemple #43
0
 public void NaviToPagePreConfig()
 {
     WorkFrame.Navigate(Tool.P2PConfig.P2PConfig.This);
 }