Пример #1
0
        public FormFilter()
        {
            Filter fl = Data.data.filter;

            InitializeComponent();

            dateTimeStart.Value   = fl.start;
            checkBoxStart.Checked = fl.startEnable;

            dateTimeEnd.Value   = fl.end;
            checkBoxEnd.Checked = fl.endEnable;

            Platform.FillCombobox(comboBoxPlatform, 0, true, null);
            comboBoxPlatform.SelectedItem = Data.PlatformIDToName(fl.platform);
            checkBoxPlatform.Checked      = fl.platformEnable;

            Medium.FillCombobox(comboBoxMedium, 0, "");
            comboBoxMedium.SelectedItem = Data.MediumIDToName(fl.medium);
            checkBoxMedium.Checked      = fl.mediumEnable;

            Genre.FillCombobox(comboBoxGenre, 0);
            comboBoxGenre.SelectedItem = Data.GenreIDToName(fl.genre);
            checkBoxGenre.Checked      = fl.genreEnable;

            isUser = true;
        }
Пример #2
0
        private void linkLabelMedium_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FormDict form = new FormDict(2, Data.data.mediums);

            form.ShowDialog();
            Medium.FillCombobox(comboBoxMedium, version.medium, comboBoxPlatform.Text);
        }
Пример #3
0
 void RefreshData()
 {
     date.Value = version.date;
     Platform.FillCombobox(comboBoxPlatform, version.platform, true, null);
     Medium.FillCombobox(comboBoxMedium, version.medium, comboBoxPlatform.Text);
     textBoxPrice.Text   = version.price.ToString();
     textBoxComment.Text = version.comment;
 }
Пример #4
0
 private void ComboBoxPlatform_SelectedIndexChanged(object sender, EventArgs e)
 {
     Medium.FillCombobox(comboBoxMedium, version.medium, comboBoxPlatform.Text);
 }