private void LoadNotes()
        {
            _ownerid  = driver.DriverID;
            _notetype = Notes.NoteType.Driver;

            collNotes = new Notes(_ownerid, _notetype);

            LoadNotestoListView();
        }
示例#2
0
        public frmNote(int ownerid, Notes.NoteType notetype)
        {
            InitializeComponent();
            _ownerid  = ownerid;
            _notetype = notetype;
            if (notetype == Notes.NoteType.Client)
            {
                client = new Client(ownerid, false);
                this.rtxtClientDetails.Text  = (client.Title + " " + client.FirstName + " " + client.Surname).Trim();
                this.rtxtClientDetails.Text += System.Environment.NewLine + client.AddressLine1 + System.Environment.NewLine + client.Postcode;
            }
            else if (notetype == Notes.NoteType.Driver)
            {
            }

            collNotes = new Notes(ownerid, notetype);

            LoadNotestoListView();
        }