private void RoughnessMarkFrm_Load(object sender, EventArgs e) { Kingdee.CAPP.Common.ComboBoxSourceHelper com = new Kingdee.CAPP.Common.ComboBoxSourceHelper(); com.BinderEnum <Kingdee.CAPP.Common.ComboBoxSourceHelper.RoughnessSymbolValue>(this.cmbSymbolValue, 0); double stand = 0.025; //cmbValue.Items.Add("无"); for (int i = 0; i < 16; i++) { if (i == 0) { cmbValue.Items.Add("0.012"); } else { cmbValue.Items.Add(stand.ToString()); stand *= 2; if (i == 8 || i == 9) { stand -= 0.1; } } } g = pbPreview.CreateGraphics(); }
private void ToleranceMarkFrm_Load(object sender, EventArgs e) { Kingdee.CAPP.Common.ComboBoxSourceHelper com = new Kingdee.CAPP.Common.ComboBoxSourceHelper(); com.BinderEnum <Kingdee.CAPP.Common.ComboBoxSourceHelper.ToleranceType>(this.comboToleranceType, 0); picStyle1.Click += PictureBox_Click; picStyle2.Click += PictureBox_Click; picStyle3.Click += PictureBox_Click; currPicture = picStyle1; startupPath = Application.StartupPath + "\\Resources\\size\\{0}"; }
/// <summary> /// 窗体Load事件 /// </summary> private void DataGridViewToBmpFrm_Load(object sender, EventArgs e) { Kingdee.CAPP.Common.ComboBoxSourceHelper com = new Kingdee.CAPP.Common.ComboBoxSourceHelper(); com.BinderEnum <Kingdee.CAPP.Common.ComboBoxSourceHelper.ImageType>(this.cmbImageType, 0); groupBox1.Text = string.Format(groupBox1.Text, TotalPage); }