예제 #1
0
 private void Btn_EscolherProjeto_Click(object sender, RoutedEventArgs e)
 {
     EscolherProjeto win = new EscolherProjeto();
     win.Left = this.Left;
     win.Top = this.Top;
     win.Show();
     this.Close();
 }
예제 #2
0
        private void Btn_Abrir_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult mbr = Utils.createMsgBox("Pretende Abrir o Projeto.", "Abrir Projeto", MessageBoxButton.OKCancel, MessageBoxImage.Information);
            if (mbr == MessageBoxResult.Cancel)
                return;

            GestorProjeto.Instance.AbrirProjeto(m_numProjeto);
            EscolherProjeto win = new EscolherProjeto();
            win.Left = this.Left;
            win.Top = this.Top;
            win.Show();
            this.Close();
        }
예제 #3
0
        private void Btn_EmitirDespacho_Click(object sender, RoutedEventArgs e)
        {
            if (CB_Gestor.Text == "" || CB_Gestor.Text == null)
            {
                Utils.createMsgBox("Tem que atribuir um gestor ao Projeto.", "Despacho de Abertura", MessageBoxButton.OK, MessageBoxImage.Error);
                return;
            }

            MessageBoxResult mbr = Utils.createMsgBox("Emitir Despacho de abertura?", "Despacho de Abertura", MessageBoxButton.OKCancel, MessageBoxImage.Information);
            if (mbr == MessageBoxResult.Cancel)
                return;

            m_p.Gestor = CB_Gestor.Text;
            GestorProjeto.Instance.DespachoAbertura(m_p, TB_Nota.Text);
            EscolherProjeto win = new EscolherProjeto();
            win.Left = this.Left;
            win.Top = this.Top;
            win.Show();
            this.Close();
        }