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; }
public ListBoxItem_CustomStr(CustomStrData customStrData, ConnectionTabHelper connectionTabHelper) { InitializeComponent(); this.Data = customStrData; this.connectionTabHelper = connectionTabHelper; if (customStrData != null) { Refresh(); } this.TextBox_Command.TextChanged += TextBox_Command_TextChanged; }
public ConnectionTabData(ConnectionTabHelper connectionTabHelper) { this.tabHelper = connectionTabHelper; this.parentWindow = connectionTabHelper.CurrentWindow; //this.ReceivePage = page_ConnectionTab; //Frame ReceiveFrame = new Frame(); //ReceiveFrame.Content = ReceivePage; this.TabItem = new ConnectionTabItem(this); AutoSendRobot = new AutoSendRobot(this); AutoSendRobot.DataChanged = parentWindow.UpdateAutoSenderInfo; TabItem.Content = tabHelper.ReceivePageFrame; SetDefault(); }
public ControlCommandHandle(MainWindow mainWindow) { this.mainWindow = mainWindow; ConnectionTabHelper = mainWindow.ConnectionTabHelper; }