Esempio n. 1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            var f = new frmEditSource();

            f.LoadData(GetSelectedSource().Source);
            if (f.ShowDialog() == DialogResult.OK)
            {
                this.ReloadList();
            }
        }
Esempio n. 2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            var f      = new frmEditSource();
            var source = new Source();

            source.IsGlobal = true;
            f.LoadData(source);
            if (f.ShowDialog() == DialogResult.OK)
            {
                AddToList(source);
            }
        }