Ejemplo n.º 1
0
        private void NewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TemplateSettingForm form = new TemplateSettingForm(TemplateSettingType.New);

            form.ShowDialog();
            TemplateListView.Items.Clear();
            BindTemplateList(temp.GetAllTemplate());
        }
Ejemplo n.º 2
0
        private void ViewToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            TemplateSettingForm form = new TemplateSettingForm(TemplateSettingType.View);

            if (TemplateListView.SelectedItems.Count != 0)
            {
                Template template = TemplateListView.SelectedItems[0].Tag as Template;
                if (template != null)
                {
                    form.Template = template;
                    form.InitTemplate();
                }
                form.ShowDialog();
            }
        }
Ejemplo n.º 3
0
        private void EditToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TemplateSettingForm form = new TemplateSettingForm(TemplateSettingType.Edit);

            if (TemplateListView.SelectedItems.Count != 0)
            {
                Template template = TemplateListView.SelectedItems[0].Tag as Template;
                if (template != null)
                {
                    form.Template = template;
                    form.InitTemplate();
                }
                form.ShowDialog();
                TemplateListView.Items.Clear();
                BindTemplateList(temp.GetAllTemplate());
            }
        }