예제 #1
0
        private void butAdd_Click(object sender, EventArgs e)
        {
            ConfigStyle style = new ConfigStyle("neu");

            m_config.Styles.Add(style);
            lstStyles.SelectedIndex = lstStyles.Items.Add(style);
            txtName.Focus();
            txtName.SelectAll();
        }
예제 #2
0
        private void mnuStyles_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem item  = sender as ToolStripMenuItem;
            ConfigStyle       style = item.Tag as ConfigStyle;

            m_config.LastStyle = m_config.Styles.IndexOf(style);
            CurrentConfig      = CurrentConfig;
            CurrentConfig.Save();
        }