public void SetDetails(string prName, string prSpeciality, string prPhone, byte prSortOrder,
                        clsWorksList prWorksList, clsArtistList prArtistList)
 {
     txtName.Text = prName;
     txtSpeciality.Text = prSpeciality;
     txtPhone.Text = prPhone;
     theArtistList = prArtistList;
     theWorksList = prWorksList;
     sortOrder = prSortOrder;
     UpdateDisplay();
 }
Example #2
0
 public void SetDetails(string prName, string prSpeciality, string prPhone, byte prSortOrder,
                        clsWorksList prWorksList, clsArtistList prArtistList)
 {
     txtName.Text       = prName;
     txtSpeciality.Text = prSpeciality;
     txtPhone.Text      = prPhone;
     theArtistList      = prArtistList;
     theWorksList       = prWorksList;
     sortOrder          = prSortOrder;
     UpdateDisplay();
 }
Example #3
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            try
            {
                _ArtistList = clsArtistList.Retrieve();
            } catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            UpdateDisplay();
        }
Example #4
0
        private void Retrieve()
        {
            try
            {
                System.IO.FileStream lcFileStream = new System.IO.FileStream(fileName, System.IO.FileMode.Open);
                System.Runtime.Serialization.Formatters.Soap.SoapFormatter lcFormatter =
                    new System.Runtime.Serialization.Formatters.Soap.SoapFormatter();

                theArtistList = (clsArtistList)lcFormatter.Deserialize(lcFileStream);
                UpdateDisplay();
                lcFileStream.Close();
            }

            catch (Exception e)
            {
                MessageBox.Show(e.Message, "File Retrieve Error");
            }
        }
        private void Retrieve()
        {
            try
            {
                System.IO.FileStream lcFileStream = new System.IO.FileStream(fileName, System.IO.FileMode.Open);
                System.Runtime.Serialization.Formatters.Soap.SoapFormatter lcFormatter =
                    new System.Runtime.Serialization.Formatters.Soap.SoapFormatter();

                theArtistList = (clsArtistList)lcFormatter.Deserialize(lcFileStream);
                UpdateDisplay();
                lcFileStream.Close();
            }

            catch (Exception e)
            {
                MessageBox.Show(e.Message, "File Retrieve Error");
            }
        }
Example #6
0
        public static clsArtistList Retrieve()
        {
            clsArtistList lcArtistList;

            try
            {
                System.IO.FileStream lcFileStream = new System.IO.FileStream(_fileName, System.IO.FileMode.Open);
                System.Runtime.Serialization.Formatters.Binary.BinaryFormatter lcFormatter =
                    new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();

                lcArtistList = (clsArtistList)lcFormatter.Deserialize(lcFileStream);
                lcFileStream.Close();
            } catch (Exception e)
            {
                lcArtistList = new clsArtistList();
                throw new Exception(e.Message + " File Retrieve Error");
            }
            return(lcArtistList);
        }
 public clsArtist(clsArtistList prArtistList)
 {
     theWorksList = new clsWorksList();
     theArtistList = prArtistList;
     EditDetails();
 }
Example #8
0
 public clsArtist(clsArtistList prArtistList)
 {
     theWorksList  = new clsWorksList();
     theArtistList = prArtistList;
     EditDetails();
 }