Ejemplo n.º 1
0
        public SymbolSelector(string configpath) : this()
        {
            if (File.Exists(configpath))
            {
                try
                {
                    SvgDocument doc = SymbolGroup.LoadSymbol(configpath);
                    this.InitData(doc);
                }
                catch (Exception e)
                {
                    MessageBox.Show(e.Message);
                }

                base.CreateShapePanel();
            }
        }
Ejemplo n.º 2
0
        public void ReLoad()
        {
            if (this.document != null)
            {
                try
                {
                    SvgDocument doc = SymbolGroup.LoadSymbol(this.document.FilePath);

                    this.InitData(doc);
                    base.LayoutShapePanel();
                    if (this.selectorGroups.Count > 0)
                    {
                        base.GroupItems = this.selectorGroups[0] as IOutlookBarBand;
                    }
                }
                catch (Exception e)
                {
                    MessageBox.Show(e.Message);
                }
            }
        }