private void ZaoJia()
        {
            string ZaoJia = "";

            if (File.Exists(Application.StartupPath + "\\User.ini"))
            {
                User_Ini = new FileINI(Application.StartupPath + "\\User.ini");
                ZaoJia   = User_Ini.ReadValue("Setting", "BianDianZaoJia");
            }
            ((DevExpress.XtraEditors.Repository.RepositoryItemComboBox)barEditItem1.Edit).Items.Add("按容量设置造价");
            ((DevExpress.XtraEditors.Repository.RepositoryItemComboBox)barEditItem1.Edit).Items.Add("按台设置造价");
            if (ZaoJia == "按容量设置造价" || ZaoJia == "")
            {
                barEditItem1.EditValue = "按容量设置造价";
                ctrlProject_Sum1.Change_ZaoJia("单位造价(万元/MVA)");
            }
            else if (ZaoJia == "按台设置造价")
            {
                barEditItem1.EditValue = "按台设置造价";
                ctrlProject_Sum1.Change_ZaoJia("单位造价(万元/台)");
            }
        }
Beispiel #2
0
 private void ZaoJia()
 {
     string ZaoJia="";
      if (File.Exists(Application.StartupPath+"\\User.ini"))
     {
         User_Ini = new FileINI(Application.StartupPath + "\\User.ini");
         ZaoJia= User_Ini.ReadValue("Setting", "BianDianZaoJia");
      }
      ((DevExpress.XtraEditors.Repository.RepositoryItemComboBox)barEditItem1.Edit).Items.Add("�������������");
      ((DevExpress.XtraEditors.Repository.RepositoryItemComboBox)barEditItem1.Edit).Items.Add("��̨�������");
      if (ZaoJia == "�������������"||ZaoJia =="")
      {
          barEditItem1.EditValue = "�������������";
          ctrlProject_Sum1.Change_ZaoJia("��λ��ۣ���Ԫ/MVA��");
      }
      else if(ZaoJia == "��̨�������")
      {
          barEditItem1.EditValue = "��̨�������";
          ctrlProject_Sum1.Change_ZaoJia("��λ��ۣ���Ԫ/̨��");
      }
 }