Esempio n. 1
0
        /// <summary>
        /// Creating new configuration
        /// - get title
        /// - save to disk
        /// - add to configurations
        /// - add to combobox in main RatedEventsTab
        /// - show new configuration in RatedEventsDetails
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripButtonNew_Click(object sender, EventArgs e)
        {
            RatedEventNewTitle d = new RatedEventNewTitle();

            d.OnButtonYes += new TBButtonPressed(OnNewConfiguration);
            d.TextLabel    = "Create new configuration for rated events.";
            d.TextValue    = "Untitled";
            RatedEventNewTitleController dc = new RatedEventNewTitleController(d);

            dc.ShowInContainer(Controller.ViewContainer, GVControlAlign.Center);
        }
Esempio n. 2
0
        private void toolStripButtonCopy_Click(object sender, EventArgs e)
        {
            RatedEventNewTitle d = new RatedEventNewTitle();

            d.OnButtonYes          += new TBButtonPressed(OnNewConfiguration);
            d.ExistingConfiguration = SelectedTemplateConfig;
            d.TextLabel             = "Clone existing configuration for rated events.";
            d.TextValue             = (d.ExistingConfiguration != null ? d.ExistingConfiguration.Title : "Untitled") + " (copy)";
            d.ButtonOkLabel         = "Clone";
            RatedEventNewTitleController dc = new RatedEventNewTitleController(d);

            dc.ShowInContainer(Controller.ViewContainer, GVControlAlign.Center);
        }