Exemple #1
0
        private void buttonEdit_Click(object sender, EventArgs e)
        {
            EditStringCollection es = new EditStringCollection();

            string[] items = new string[sc.Count];
            sc.CopyTo(items, 0);

            es.Items = items;
            if (es.ShowDialog() == DialogResult.OK)
            {
                sc.Clear();
                sc.AddRange(es.Items);
                LoadSettings();
                ItemsChanged(this, EventArgs.Empty);
            }
        }
Exemple #2
0
        private void buttonEdit_Click(object sender, EventArgs e)
        {
            EditStringCollection es = new EditStringCollection();
            StringCollection     sc = Settings.Default.DailyGraphProperties;

            string[] items = new string[sc.Count];

            Settings.Default.DailyGraphProperties.CopyTo(items, 0);

            es.Items = items;
            if (es.ShowDialog() == DialogResult.OK)
            {
                sc.Clear();
                sc.AddRange(es.Items);
            }
        }