Ejemplo n.º 1
0
        public Page_ConnectionTab(ConnectionTabHelper connectionTabHelper)
        {
            InitializeComponent();

            this.ConnectionTabHelper = connectionTabHelper;
            customStrManager         = ((MainWindow)App.Current.MainWindow).CustomStrManager;
            dialogCustomStrBookmark  = new PageCustomStrBookmarkDialog(customStrManager.CustomStrTabList);
            dialogCustomStrBookmark.PopupDialog.OnClose = (s, arg) =>
            {
                CustomStrTabRefresh();
                ListBox_CustomStr_Refresh();
            };


            this.ToolBarMinWidth = this.ToolBarColumn.MinWidth;
            //CommandListFilePath = ;
            Debug.WriteLine(CommandListFilePath);
            PopupDialogHostTools   = new PopupDialogHost(this.DialogHostFrame, this.ToolBarMain);
            PopupDialogHostReceive = new PopupDialogHost(this.DialogHostFrameReceive, this.ReceiveMain);


            WidgetInitial();
            this.Combo_CustomStrTab.SelectionChanged += Combo_MultiCommand_Table_SelectionChanged;
            Debug.WriteLine("Init");
            TextBox_Receive.DataContext = testViewModel;

            customStrManager.OnLoadFinish = CustomStrLoadFinish;
            customStrManager.LoadCustomStrAsync();
            this.Buttom_CustomStrBookMark.Click += Buttom_CustomStrBookMark_Click;
            this.Charts.Content = ChartsPage = new ChartsExample();
            this.SizeChanged   += Page_ConnectionTab_SizeChanged;
        }
Ejemplo n.º 2
0
 public CustomBaudrate(PageSetting pageSettingSerial, PopupDialogHost popupDialogHost)
 {
     this.PopupDialogHost     = popupDialogHost;
     this.page_Setting_Serial = pageSettingSerial;
     Label label = new Label()
     {
         Content = ""
     };
 }
Ejemplo n.º 3
0
        private void Buttom_CustomStrBookMark_Click(object sender, RoutedEventArgs e)
        {
            PopupDialogHost popupDialogHost = ((MainWindow)App.Current.MainWindow).PopupDialogHost;

            popupDialogHost.Show(dialogCustomStrBookmark.PopupDialog);
        }
Ejemplo n.º 4
0
 public Updater(MainWindow parentWindow)
 {
     this.ParentWindow    = parentWindow;
     this.PopupDialogHost = parentWindow.PopupDialogHost;
 }