public PainelInicial() { InitializeComponent(); userControlCentro = new UserControlCentro(); tt = new LeftPainelControl(userControlCentro); teste.Children.Add(tt); }
public PainelDetalhesConhecimento(UserControlCentro ucc, bool back) { InitializeComponent(); PainelCentro = ucc; conhe = new Conhecimento(); anexo = new Anexo(); buttonsDetails = new Controls.ButtonsDetails(); gridFundo.Children.Add(buttonsDetails); buttonsDetails.SaveClick += new EventHandler(Add_Conhecimento); buttonsDetails.HomeClick += new EventHandler(Home); buttonsDetails.DeleteClick += new EventHandler(DeleteConhecimento); treeView = new Controls.TreeView(this); gridPesquisa.Children.Add(treeView); propertyGridInfo = new Controls.PropertyGrid(this); gridPropertyInfo.Children.Add(propertyGridInfo); propertyGridComboBox.SelectedIndex = 2; textEditor.TextArea.TextEntering += textEditor_TextArea_TextEntering; textEditor.TextArea.TextEntered += textEditor_TextArea_TextEntered; DispatcherTimer foldingUpdateTimer = new DispatcherTimer(); foldingUpdateTimer.Interval = TimeSpan.FromSeconds(2); foldingUpdateTimer.Tick += foldingUpdateTimer_Tick; foldingUpdateTimer.Start(); }
public PainelEntidades(UserControlCentro controlCentro) { InitializeComponent(); PainelCentro = controlCentro; entidade = entidades.GetEntidade(); data1.ItemsSource = entidade; Loaded += OnLoaded; }
public PainelImportacao(UserControlCentro userControlCentro) { InitializeComponent(); PainelCentro = userControlCentro; propertyGridComboBox.SelectedIndex = 2; Preenche_Controls(); ButtonSelectAll.Visibility = System.Windows.Visibility.Hidden; }
public PainelSincronizacao(UserControlCentro controlCentro) { InitializeComponent(); PainelCentro = controlCentro; ServidorBD.Text = Properties.Settings.Default.bServidor; usernameBD.Text = Properties.Settings.Default.bUsername; DatabaseBD.Text = Properties.Settings.Default.bBDName; PasswordBD.Text = Properties.Settings.Default.bPassword; PasswordBDPass.Password = Properties.Settings.Default.bPassword; PasswordBD.Visibility = System.Windows.Visibility.Hidden; }
public PainelDetalhesUtilizadores(UserControlCentro controlCentro) { InitializeComponent(); PainelCentro = controlCentro; buttonsDetails = new Controls.ButtonsDetails(); gridFundo.Children.Add(buttonsDetails); buttonsDetails.SaveClick += new EventHandler(Add_Utilizador); buttonsDetails.HomeClick += new EventHandler(Home); buttonsDetails.DeleteClick += new EventHandler(DeleteUser); PasswordUser.Visibility = System.Windows.Visibility.Hidden; UsernameUser.BorderBrush = PasswordUserPass.BorderBrush = PasswordUser.BorderBrush = NomeUser.BorderBrush = Brushes.Red; }
public PainelPessoas(UserControlCentro controlCentro) { InitializeComponent(); PainelCentro = controlCentro; dp = new Controls.DataGridPessoas(people.GetPessoas(), PainelCentro); dd1.Children.Add(dp); buttonsGeral = new Controls.ButtonsGeral(); GridFundo.Children.Add(buttonsGeral); buttonsGeral.DeleteClick += new EventHandler(EliminaPessoa); buttonsGeral.AddClick += new EventHandler(AddNewPessoa); buttonsGeral.EditClick += new EventHandler(EditaPessoa); buttonsGeral.RefreshClick += new EventHandler(Refresh); buttonsGeral.HomeClick += new EventHandler(Home); }
public PainelUtilizadores(UserControlCentro controlCentro) { InitializeComponent(); PainelCentro = controlCentro; du = new Controls.DataGridUtilizadores(user.GetUtilizador(), PainelCentro); dd1.Children.Add(du); buttonsGeral = new Controls.ButtonsGeral(); GridFundo.Children.Add(buttonsGeral); buttonsGeral.DeleteClick += new EventHandler(EliminaUser); buttonsGeral.AddClick += new EventHandler(AddNewUser); buttonsGeral.EditClick += new EventHandler(EditaUser); buttonsGeral.RefreshClick += new EventHandler(Refresh); buttonsGeral.HomeClick += new EventHandler(Home); }
public PainelProjetos(UserControlCentro controlCentro) { InitializeComponent(); PainelCentro = controlCentro; dt = new Controls.DataGridProjetos(projetos.getProjetos(), PainelCentro); dd1.Children.Add(dt); buttonsGeral = new Controls.ButtonsGeral(); gridFundo.Children.Add(buttonsGeral); buttonsGeral.DeleteClick += new EventHandler(EliminaProjeto); buttonsGeral.AddClick += new EventHandler(AddNewProjeto); buttonsGeral.EditClick += new EventHandler(EditaProjeto); buttonsGeral.RefreshClick += new EventHandler(Refresh); buttonsGeral.HomeClick += new EventHandler(Home); }
public PainelDatabases(UserControlCentro controlCentro) { InitializeComponent(); PainelCentro = controlCentro; db = new Controls.DataGridDatabases(database.GetBasesDeDados(), PainelCentro); dd1.Children.Add(db); buttonsGeral = new Controls.ButtonsGeral(); gridFundo.Children.Add(buttonsGeral); buttonsGeral.DeleteClick += new EventHandler(EliminaBD); buttonsGeral.AddClick += new EventHandler(AddNewBD); buttonsGeral.EditClick += new EventHandler(EditaBD); buttonsGeral.RefreshClick += new EventHandler(Refresh); buttonsGeral.HomeClick += new EventHandler(Home); }
public PainelDetalhesTabelas(UserControlCentro ucc, bool back) { InitializeComponent(); PainelCentro = ucc; tabela = new Tabela(); buttonsDetails = new Controls.ButtonsDetails(); gridFundo.Children.Add(buttonsDetails); buttonsDetails.SaveClick += new EventHandler(Add_Tabela); buttonsDetails.HomeClick += new EventHandler(Home); buttonsDetails.DeleteClick += new EventHandler(DeleteTabela); propertyGridComboBox.SelectedIndex = 2; ActualizaDataGrid(); try { var subtype = subtipo.getSubtipo(); ComboListSubtipo.Add(" "); foreach (Subtipos st in subtype) { ComboListSubtipo.Add(st.Nome); } types = tipo.getTipo(); ListTipo.Add(" "); foreach (Tipos t in types) { ListTipo.Add(t.Nome); } AutoComplete1.ItemsSource = AutoComplete2.ItemsSource = ListTipo; combo_subtipos.ItemsSource = ComboListSubtipo; } catch { } textEditor.TextArea.TextEntering += textEditor_TextArea_TextEntering; textEditor.TextArea.TextEntered += textEditor_TextArea_TextEntered; DispatcherTimer foldingUpdateTimer = new DispatcherTimer(); foldingUpdateTimer.Interval = TimeSpan.FromSeconds(2); foldingUpdateTimer.Tick += foldingUpdateTimer_Tick; foldingUpdateTimer.Start(); }
public PainelConhecimento(UserControlCentro controlCentro) { InitializeComponent(); PainelCentro = controlCentro; dc = new Controls.DataGridConhecimento(conhecimento.GetConhecimentoGrid(), PainelCentro); dd1.Children.Add(dc); buttonsGeral = new Controls.ButtonsGeral(); gridFundo.Children.Add(buttonsGeral); buttonsGeral.DeleteClick += new EventHandler(EliminaConhecimento); buttonsGeral.AddClick += new EventHandler(AddNewConhecimento); buttonsGeral.EditClick += new EventHandler(EditaConhecimento); buttonsGeral.RefreshClick += new EventHandler(Refresh); buttonsGeral.HomeClick += new EventHandler(Home); }
public PainelDetalhesPessoas(UserControlCentro controlCentro) { InitializeComponent(); PainelCentro = controlCentro; Loaded += OnLoaded; buttonsDetails = new Controls.ButtonsDetails(); gridFundo.Children.Add(buttonsDetails); buttonsDetails.SaveClick += new EventHandler(Add_Pessoa); buttonsDetails.HomeClick += new EventHandler(Home); buttonsDetails.DeleteClick += new EventHandler(DeletePessoa); NomePessoa.BorderBrush = Brushes.Red; AutoComplete1.BorderBrush = Brushes.Red; tabConhecimento.Visibility = System.Windows.Visibility.Hidden; }
public PainelDetalhesProjetos(UserControlCentro controlCentro, bool back) { InitializeComponent(); retroceder = back; PainelCentro = controlCentro; projeto = new Projeto(); Loaded += OnLoaded; PainelCentro.backward = true; buttonsDetails = new Controls.ButtonsDetails(); tabConhecimento.Visibility = System.Windows.Visibility.Hidden; tabDatabases.Visibility = System.Windows.Visibility.Hidden; DetalhesProjeto.IsSelected = true; NomeProjeto.BorderBrush = Brushes.Red; AutoComplete1.BorderBrush = Brushes.Red; }
public PainelTipos(UserControlCentro controlCentro) { InitializeComponent(); PainelCentro = controlCentro; bts = new Controls.ButtonsTipoAndSubtipo(); GridFundo.Children.Add(bts); bts.DeleteClick += new EventHandler(Elimina); bts.AddClick += new EventHandler(Adiciona); bts.EditClick += new EventHandler(Edita); bts.HomeClick += new EventHandler(Home); bts.RefreshClick += new EventHandler(Refresh); bts.SaveClick += new EventHandler(Save); ds = new Controls.DataGridSubtipo(subtype.getSubtipo(), PainelCentro, this); dp = new Controls.DataGridTipos(type.getTipo(), PainelCentro, this, ds); dd1.Children.Add(dp); }
public PainelDetalhesDatabases(UserControlCentro controlCentro) { InitializeComponent(); PainelCentro = controlCentro; database = new ViewModels.BasesdeDados(); AutoComplete1.BorderBrush = PasswordBDPass.BorderBrush = DatabaseBD.BorderBrush = ServidorBD.BorderBrush = PasswordBD.BorderBrush = usernameBD.BorderBrush = Brushes.Red; PasswordBD.Visibility = System.Windows.Visibility.Hidden; buttonsDetails = new Controls.ButtonsDetails(); gridFundo.Children.Add(buttonsDetails); buttonsDetails.SaveClick += new EventHandler(Add_Database); buttonsDetails.HomeClick += new EventHandler(Home); buttonsDetails.DeleteClick += new EventHandler(DeleteBD); Loaded += OnLoaded; }
public PainelDetalhesEntidades(UserControlCentro controlCentro) { InitializeComponent(); PainelCentro = controlCentro; emp = new ViewModels.Entidade(); PainelCentro.backward = true; buttonsDetails = new Controls.ButtonsDetails(); //gridFundo.Children.Add(buttonsDetails); tabPessoas.Visibility = System.Windows.Visibility.Hidden; tabProjetos.Visibility = System.Windows.Visibility.Hidden; tabConhecimento.Visibility = System.Windows.Visibility.Hidden; tabDatabases.Visibility = System.Windows.Visibility.Hidden; DetalhesEntidade.IsSelected = true; NomeEntidade.BorderBrush = Brushes.Red; }
public LeftPainelControl(UserControlCentro ucc) { InitializeComponent(); PainelCentro = ucc; }