Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window
        private void AddPanelToWindow(MainWindow window)
        {
            WindowsFormsHost host = new WindowsFormsHost();
            //host.Background = Brushes.White;
            host.Width = window.Width - 100;
            host.Height = window.Height - 100;

            m_DrawingPanel = new FormDrawing();
            host.Child = m_DrawingPanel;
            window.grid1.Children.Add(host);
        }
Exemple #2
0
        public Window1(MainWindow mwf)
        {
            InitializeComponent();
            this.mainForm = mwf;
            comboColors.ItemsSource = typeof(Colors).GetProperties();
            comboColors2.ItemsSource = typeof(Colors).GetProperties();
            comboColorsGraph1.ItemsSource = typeof(Colors).GetProperties();
            comboColorsGraph2.ItemsSource = typeof(Colors).GetProperties();

            this.numericTextBoxDouble5.Value = Properties.Settings.Default.maxVoltage;
            this.numericTextBoxDouble6.Value = Properties.Settings.Default.minVoltage;
            this.numericTextBoxDouble1.Value = Properties.Settings.Default.samplingSpeed;
            this.numericTextBoxDouble2.Value = Properties.Settings.Default.samplesPerChannelNumeric;
            this.numericTextBoxDouble3.Value = Properties.Settings.Default.rateNumeric;
            this.textBox5.Text = Properties.Settings.Default.txtFilePath;
            this.textBox7.Text = Properties.Settings.Default.databaseID;
            this.passwordBox1.Password = Properties.Settings.Default.databasePwd;
            this.textBox8.Text = Properties.Settings.Default.projectName;
            this.textBox10.Text = Convert.ToString(Properties.Settings.Default.jobNum);
            checkListBox1_Loaded();

        }
 public DrawingInBmp(MainWindow window)
 {
     m_MainWindow = window;
     AddPanelToWindow(window);
 }
Exemple #4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Window = ((WpfApplication6.MainWindow)(target));
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     }
     this._contentLoaded = true;
 }