Пример #1
0
        private void filteredViewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FilteredView filteredView = new FilteredView(this);

            // Set the Parent Form of the Child window.
            filteredView.MdiParent = this;
            // Display the new form.
            filteredView.Show();

            filteredView.updateView(cars);
        }
Пример #2
0
        public CarsForm()
        {
            this.IsMdiContainer = true;
            InitializeComponent();
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            FilteredView filteredView = new FilteredView(this);

            // Set the Parent Form of the Child window.
            filteredView.MdiParent = this;
            // Display the new form.
            filteredView.Show();
        }