private void ShowStorageWindow(int id) { StorageView storageView = new StorageView(); StorageViewModel storageViewModel = new StorageViewModel(id); storageView.DataContext = storageViewModel; storageView.Show(); }
private void ShowStorageWindow(int id, string filterText) { StorageView storageView = new StorageView(); StorageViewModel storageViewModel = new StorageViewModel(id, filterText); storageView.DataContext = storageViewModel; storageView.Show(); }
private void закупкиToolStripMenuItem_Click(object sender, EventArgs e) { Form newForm = new StorageView(this, user); if (currentChildForm != null) { currentChildForm.Close(); } currentChildForm = newForm; newForm.MdiParent = this; newForm.WindowState = FormWindowState.Maximized; newForm.BringToFront(); newForm.Show(); }