Ejemplo n.º 1
0
        //Precondition: none
        //Postcondition: display the details of the added
        //book to a message box using the below format
        public override string ToString()
        {
            string details;

            details = "Title:" + Title.ToString() + System.Environment.NewLine
                      + "Author:" + Author.ToString() + System.Environment.NewLine
                      + "Publisher:" + Publisher.ToString() + System.Environment.NewLine
                      + "Copyright:" + CopyRight.ToString("D4") + System.Environment.NewLine
                      + "Call Number:" + CallNumber.ToString() + System.Environment.NewLine
                      + "Check out Status:" + this.IsCheckedOut() + System.Environment.NewLine;

            return(details);
        }
Ejemplo n.º 2
0
 public override void OnStart()
 {
     base.OnStart();
     StartLoader(
         BaseGlobal.LogoMgr,
         BaseGlobal.GRMgr,
         BaseGlobal.LangMgr,
         BaseGlobal.LuaMgr,
         BaseGlobal.ExcelMgr,
         BaseGlobal.TextAssetsMgr,
         CopyRight.GetLoader()
         );
 }
Ejemplo n.º 3
0
        public override void Copy(ITextDisplayStyle source)
        {
            Name = source.Name;
            BackgroundTransparent = source.BackgroundTransparent;
            BackgroundColour      = source.BackgroundColour;
            BackgroundImage       = source.BackgroundImage;
            TransitionTime        = source.TransitionTime;
            BibleDisplayStyle bibleSource = source as BibleDisplayStyle;

            if (bibleSource != null)
            {
                PassageTitle.Copy(bibleSource.PassageTitle);
                CopyRight.Copy(bibleSource.CopyRight);
                MainText.Copy(bibleSource.MainText);
            }
            OnChanged();
        }