public OfferSearchView(SimulationEDP mainWindow) { InitializeComponent(); _mainWindow = mainWindow; service = new CustQuotasService(); LoadGrid(); }
public ItemsAttachView(SimulationEDP window) { InitializeComponent(); _window = window; listAttach = new List <CS_CustQuotasCompAttach>(); VerifyDictionary(); }
public OperationView(SimulationEDP mainWindow) { InitializeComponent(); _mainWindow = mainWindow; operationService = new OperationService(); DisabledFields(); LoadGrid(); }
public DrawingView(SimulationEDP window) { InitializeComponent(); _window = window; bomService = new BOMService(); dwService = new DrawingService(); LoadGrid(); }
private void Window_Closed(object sender, EventArgs e) { SimulationEDP.UpdateOnOffFalse(); for (int i = App.Current.Windows.Count - 1; i >= 0; i--) { App.Current.Windows[i].Close(); } }
public ItemsView(SimulationEDP window) { InitializeComponent(); componentObj = new CS_CustQuotasComponent(); _mainWindow = window; itemsService = new ItemsService(); opService = new OperationService(); bomService = new BOMService(); LoadGrid(); NotVisibleIsSpecific(); }
private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (CheckOpenSimulation()) { return; } //Limpando a view atual UserControl usc = null; GridMain.Children.Clear(); //Verificando qual tela será carregada switch (((ListViewItem)((ListView)sender).SelectedItem).Name) { case "Main": usc = new HomeView(); GridMain.Children.Add(usc); break; case "EDPSimulation": usc = new SimulationEDP(); GridMain.Children.Add(usc); break; case "CostFormation": usc = new HomeView(); GridMain.Children.Add(usc); CostFormationView window = new CostFormationView(); window.ShowDialog(); window.Activate(); break; case "TimeSheet": if (Menu.usermanager == null) { MessageBox.Show("Usuário não existe na base de dados atual!", "Aviso", MessageBoxButton.OK, MessageBoxImage.Warning); return; } usc = new TimeSheetView(); GridMain.Children.Add(usc); break; case "Settings": usc = new SettingsView(); GridMain.Children.Add(usc); break; default: break; } }