コード例 #1
0
 public DlvProfileAddEditDialog(DlvProfileDialog dlvprofile_dialog, DlvProfileVM dlvprofile = null)
 {
     InitializeComponent();
     this.dlvprofile_dialog = dlvprofile_dialog;
     this.main_form         = dlvprofile_dialog.main_form;
     this.form_mode         = dlvprofile == null ? FORM_MODE.ADD : FORM_MODE.EDIT;
     this.dlvprofile        = dlvprofile;
 }
コード例 #2
0
        private void btnListDlvProfile_Click(object sender, EventArgs e)
        {
            DlvProfileDialog dlv = new DlvProfileDialog(this.main_form);

            dlv.ShowDialog();
            this.dealer_dialog.dlv_profiles = dlv.LoadDlvProfileFromServer();
            this.cbDlvProfile.AddItem <DlvProfileVM>(this.dealer_dialog.dlv_profiles, true);
            this.cbDlvProfile.Text = this.cbDlvProfile.Properties.Items.Cast <DlvProfileVM>().Where(i => i.ToString().Trim() == this.cbDlvProfile.Text.Trim()).Count() > 0 ? this.cbDlvProfile.Text : "";
        }