Exemplo n.º 1
0
        public void SetSettings(XmlNode settings)
        {
            Splits.Clear();
            XmlNodeList splitNodes = settings.SelectNodes(".//Splits/Split");

            foreach (XmlNode splitNode in splitNodes)
            {
                string    splitDescription = splitNode.InnerText;
                SplitName split            = SplitterSplitSettings.GetEnumValue <SplitName>(splitDescription);
                Splits.Add(split);
            }
        }
Exemplo n.º 2
0
        public void UpdateSplits()
        {
            if (isLoading)
            {
                return;
            }

            Splits.Clear();
            foreach (Control control in flowMain.Controls)
            {
                if (control is SplitterSplitSettings)
                {
                    SplitterSplitSettings setting = (SplitterSplitSettings)control;
                    if (!string.IsNullOrEmpty(setting.cboSplit.Text))
                    {
                        Splits.Add(SplitterSplitSettings.GetEnumValue <SplitName>(setting.cboSplit.Text));
                    }
                }
            }
        }