Пример #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            s_windowHandle = new System.Windows.Interop.WindowInteropHelper(Application.Current.MainWindow).Handle;
            System.Windows.Interop.HwndSource.FromHwnd(s_windowHandle).AddHook(RunOnUiThread);

            s_mainWin = this;
            this.comboBoxRecordedUi.ItemsSource = RecordedUiTask.s_listRecordedUi;
            this.treeUiPath.ItemsSource         = UiTreeNode.s_uiTreeNodes;

            ConstVariables.InitVk2StringMap();

            AppInsights.LogEvent("Window_Loaded");
        }
Пример #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            gridXPath.RowDefinitions[2].Height = new GridLength(TabCodeHeight);
            windowHandle = new System.Windows.Interop.WindowInteropHelper(Application.Current.MainWindow).Handle;
            System.Windows.Interop.HwndSource.FromHwnd(windowHandle).AddHook(XmlNodePathRecorder.ProcessMessage);

            s_mainWin = this;
            this.comboBoxRecordedUi.ItemsSource = s_listRecordedUi;

            ConstVariables.InitVk2StringMap();

            timer = new System.Timers.Timer(100)
            {
                Enabled = true, AutoReset = false
            };
            timer.Elapsed += InitMouseKeyboard;
            timer.Start();
        }