Exemplo n.º 1
0
 void ShowNote()
 {
     if (this.mySelectedNote != null && this.mySelectedBestellung != null)
     {
         var nv = new NotizView(this.mySelectedNote, this.mySelectedBestellung);
         nv.Show();
     }
 }
Exemplo n.º 2
0
 void OpenNote()
 {
     if (this.mySelectedNote != null)
     {
         ILinkedItem linkedItem = null;
         if (this.activeGrid == this.dgvTourKunden && this.mySelectedKunde != null)
         {
             linkedItem = this.mySelectedKunde;
         }
         else if (this.activeGrid == this.dgvInteressenten && this.mySelectedProspect != null)
         {
             linkedItem = this.mySelectedProspect;
         }
         var nv = new NotizView(mySelectedNote, linkedItem);
         nv.ShowDialog();
     }
 }
Exemplo n.º 3
0
        void AddNote()
        {
            NoteBuilder builder = null;

            if (this.activeGrid == this.dgvTourKunden && this.mySelectedKunde != null)
            {
                if (this.mySelectedKunde != null)
                {
                    builder = new NoteBuilder(this.mySelectedKunde, this.mySelectedKunde, this.mySelectedKunde.Kontaktlist.FirstOrDefault(k => k.MainContactFlag == true).Nummer);
                    var note = ModelManager.NotesService.AddNote(builder);
                    var nv   = new NotizView(note, mySelectedKunde);
                    nv.ShowDialog(this);
                }
            }
            else if (this.activeGrid == this.dgvInteressenten && this.mySelectedProspect != null)
            {
                builder = new NoteBuilder(this.mySelectedProspect, this.mySelectedProspect);
                var note = ModelManager.NotesService.AddNote(builder);
                var nv   = new NotizView(note, this.mySelectedProspect);
                nv.ShowDialog(this);
            }
        }
Exemplo n.º 4
0
 private void btnNeueNotiz_Click(object sender, EventArgs e)
 {
     Views.NotizView nv = new NotizView(myMachine.AddNotiz(), myMachine);
     nv.Show();
 }