//public bool Created
        //{
        //    get { return ((GnosisDocumentFrame)ControlImplementation).Created; }
        //    set
        //    {
        //        ((GnosisDocumentFrame)ControlImplementation).Created = value;
        //        OnPropertyChanged("Created");
        //    }

        //}
        //public bool Deleted
        //{
        //    get { return ((GnosisDocumentFrame)ControlImplementation).Deleted; }
        //    set
        //    {
        //        ((GnosisDocumentFrame)ControlImplementation).Deleted = value;
        //        OnPropertyChanged("Deleted");
        //    }
        //}

        //public bool Updated
        //{
        //    get { return ((GnosisDocumentFrame)ControlImplementation).Updated; }
        //    set
        //    {
        //        ((GnosisDocumentFrame)ControlImplementation).Updated = value;
        //        OnPropertyChanged("Updated");
        //    }
        //}

        //public bool IsEditing
        //{
        //    get { return ((GnosisDocumentFrame)ControlImplementation).IsEditing; }
        //    set
        //    {
        //        ((GnosisDocumentFrame)ControlImplementation).IsEditing = value;
        //        OnPropertyChanged("IsEditing");
        //    }
        //}

        //public override void Undo(object oldState)
        //{
        //    throw new NotImplementedException();
        //}

        //public bool IsEmpty
        //{
        //    get { return ((GnosisDocumentFrame)ControlImplementation).IsEmpty; }
        //    set
        //    {
        //        ((GnosisDocumentFrame)ControlImplementation).IsEmpty = value;
        //        OnPropertyChanged("IsEmpty");
        //    }
        //}

        //internal void Redo()
        //{
        //    throw new NotImplementedException();
        //}

        public GnosisDocumentFrameController(
            GnosisDocumentFrame documentFrame,
            //  IGnosisDocFrameImplementation _docFrameImplementation,
            GnosisInstanceController instanceController,
            GnosisContainerController parent)
            : base(documentFrame, instanceController, parent)
        {
            // documentFrame.PropertyChanged += DocFrameController_PropertyChanged;

            ChildControls = new List <IGnosisMouseVisibleControlImplementation>();
        }
Ejemplo n.º 2
0
        public static GnosisDocumentFrame CreateGnosisDocFrame(string systemName, int systemVersion, string url)
        {
            GnosisDocumentFrame docFrame = new GnosisDocumentFrame();

            docFrame.ID         = GlobalData.Singleton.GetNewControlID();
            docFrame.GnosisName = "DocFrame" + docFrame.ID.ToString();
            docFrame.Order      = 1;
            docFrame._Created   = true;
            docFrame.IsEmpty    = true;
            docFrame.IsEditing  = false;
            //  docFrame.URL = url;
            docFrame.ControlType = ControlTypeMapping.GetControlTypeName(typeof(GnosisDocumentFrame));

            return(docFrame);
        }
Ejemplo n.º 3
0
 public static void SaveGnosisDocFrame(GnosisDocumentFrame frame)
 {
     //try
     //{
     //    XmlSerializer serializer = new XmlSerializer(typeof(GnosisDocumentFrame));
     //    using (TextWriter writer = GlobalData.Singleton.IOHelper.GetTextWriter())
     //    {
     //        serializer.Serialize(writer, frame);
     //    }
     //}
     //catch (Exception ex)
     //{
     //    GlobalData.Singleton.ErrorHandler.HandleError(ex.Message, ex.StackTrace);
     //}
 }
        private GnosisDocumentFrameController New()
        {
            GnosisDocumentFrame docFrame = GnosisControlCreator.CreateGnosisDocFrame(
                GlobalData.Singleton.Connection.System,
                GlobalData.Singleton.Connection.VersionNo,
                GlobalData.Singleton.Connection.URL);

            // IGnosisDocFrameImplementation docFrameImp = GlobalData.Singleton.ImplementationCreator.GetGnosisDocFrameImplementation();

            GnosisDocumentFrameController newController =
                new GnosisDocumentFrameController(docFrame, InstanceController, (GnosisContainerController)Parent);

            newController.Setup();

            return(newController);
        }
Ejemplo n.º 5
0
        public static GnosisDocumentFrame LoadGnosisDocFrame(StreamReader sr)
        {
            XmlSerializer       serializer = new XmlSerializer(typeof(GnosisDocumentFrame));
            GnosisDocumentFrame docFrame   = null;

            try
            {
                docFrame = (GnosisDocumentFrame)serializer.Deserialize(sr);
            }
            catch (Exception ex)
            {
                GlobalData.Singleton.ErrorHandler.HandleError(ex.Message, ex.InnerException.Message);
            }

            sr.Close();
            return(docFrame);
        }