void IPersistable.SaveTo(IPersistency persistency)
        {
            string instance = DockItem.Id.ToString();

            persistency.SaveSetting(instance, "ShowHelp", this.propertygrid1.ShowHelp);
            persistency.SaveSetting(instance, "Sort", (int)this.propertygrid1.PropertySort);
        }
Пример #2
0
        void IPersistable.SaveTo(IPersistency persistency)
        {
            // TODO: get instance string not in this way, may IPersistency need a new property
            string instance = ((Component)(this.Parent.Parent)).DockItem.Id.ToString();

            persistency.SaveSetting(instance, "ActiveText", comboFind.ActiveText);
            persistency.SaveSetting(instance, "List", GetComboListEntries().ToList());
        }
        void IPersistable.SaveTo(IPersistency persistency)
        {
            string instance = DockItem.Id.ToString();

            VPanedPosition = vpaned1.Position;
            persistency.SaveSetting(instance, "VPanedPosition", VPanedPosition);
        }
Пример #4
0
        void IPersistable.SaveTo(IPersistency persistency)
        {
            string instance = DockItem.Id.ToString();

            mColumnPersistence.Clear();
            var columns = mColumnControl.GetColumns();

            foreach (var c in columns)
            {
                mColumnPersistence.Add(c.Tag, new ColumnPersistence(c.Visible, c.Width));
            }

            StringBuilder b = new StringBuilder();

            foreach (var s in mColumnPersistence)
            {
                b.AppendFormat("[{0} {1} {2}]", s.Key, s.Value.Visible ? 1 : 0, s.Value.Width);
            }

            persistency.SaveSetting(instance, "Columns", b.ToString());
            persistency.SaveSetting(instance, "FindVisible", Find.Visible);
        }
        void IPersistable.SaveTo(IPersistency persistency)
        {
            string instance = DockItem.Id.ToString();

            persistency.SaveSetting(instance, "ColorStraight", m_Properties.ColorStraight);
            persistency.SaveSetting(instance, "ColorLine", m_Properties.ColorLine);
            persistency.SaveSetting(instance, "ColorCircle", m_Properties.ColorCircle);
            persistency.SaveSetting(instance, "ColorClothoide", m_Properties.ColorClothoide);
            persistency.SaveSetting(instance, "ColorOther", m_Properties.ColorOther);
            persistency.SaveSetting(instance, "ColorNodes", m_Properties.ColorNodes);
            persistency.SaveSetting(instance, "ColorNodeSelected", m_Properties.ColorNodeSelected);
            persistency.SaveSetting(instance, "DrawConnections", m_Properties.DrawConnections);
            persistency.SaveSetting(instance, "DrawInformation", m_Properties.DrawInformation);
            persistency.SaveSetting(instance, "DrawWholeInnerCircle", m_Properties.DrawWholeInnerCircle);
            persistency.SaveSetting(instance, "DrawConstructionsPoints", m_Properties.DrawConstructionsPoints);
            persistency.SaveSetting(instance, "LineWidth", m_Properties.LineWidth);

            persistency.SaveSetting(instance, "NodeCount", m_Nodes.Count);
            for (int i = 0; i < m_Nodes.Count; i++)
            {
                var n = m_Nodes.ElementAt(i);
                persistency.SaveSetting(instance, "NodeX" + i.ToString(), n.X);
                persistency.SaveSetting(instance, "NodeY" + i.ToString(), n.Y);
            }
        }
Пример #6
0
 void IPersistable.SaveTo(IPersistency persistency)
 {
     string instance = DockItem.Id.ToString();
      VPanedPosition = vpaned1.Position;
      persistency.SaveSetting(instance, "VPanedPosition", VPanedPosition);
 }
Пример #7
0
 void IPersistable.SaveTo(IPersistency persistency)
 {
     // TODO: get instance string not in this way, may IPersistency need a new property
      string instance = ((Component)(this.Parent.Parent)).DockItem.Id.ToString();
      persistency.SaveSetting(instance, "ActiveText", comboFind.ActiveText);
      persistency.SaveSetting(instance, "List", GetComboListEntries().ToList());
 }
Пример #8
0
        void IPersistable.SaveTo(IPersistency persistency)
        {
            string instance = DockItem.Id.ToString();
             mColumnPersistence.Clear();
             var columns = mColumnControl.GetColumns();
             foreach (var c in columns)
            mColumnPersistence.Add(c.Tag, new ColumnPersistence(c.Visible, c.Width));

             StringBuilder b = new StringBuilder();
             foreach (var s in mColumnPersistence)
            b.AppendFormat("[{0} {1} {2}]", s.Key, s.Value.Visible ? 1 : 0, s.Value.Width);

             persistency.SaveSetting(instance, "Columns", b.ToString());
             persistency.SaveSetting(instance, "FindVisible", Find.Visible);
        }
        void IPersistable.SaveTo(IPersistency persistency)
        {
            string instance = DockItem.Id.ToString();

            persistency.SaveSetting(instance, "Script", mPersistence.Script);
        }
Пример #10
0
 void IPersistable.SaveTo(IPersistency persistency)
 {
     string instance = DockItem.Id.ToString();
        persistency.SaveSetting(instance, "ShowHelp", this.propertygrid1.ShowHelp);
        persistency.SaveSetting(instance, "Sort",     (int)this.propertygrid1.PropertySort);
 }
Пример #11
0
 void IPersistable.SaveTo(IPersistency persistency)
 {
     string instance = DockItem.Id.ToString();
      persistency.SaveSetting(instance, "Script", mPersistence.Script);
 }