Example #1
0
        private DataTable CreateTable(string columns)
        {
            var       cols = columns.Split(',');
            DataTable dt   = new DataTable();

            foreach (var col in cols)
            {
                dt.Columns.Add(new DataColumn(LanguageHelp.GetTextLanguage(col), typeof(string)));
            }
            return(dt);
        }
Example #2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            //ParmA.Baipingheng = tbBaipinghengA.Value;
            //ParmA.Baoguang = tbBaoguangA.Value;
            ParmA.Baohedu      = tbBaoheduA.Value;
            ParmA.Duibidu      = tbDuibiduA.Value;
            ParmA.Gama         = tbGamaA.Value;
            ParmA.Liangdu      = tbLiangduA.Value;
            ParmA.Niguangduibi = tbNiguangduibiA.Value;
            ParmA.Qingxidu     = tbQinxiduA.Value;
            //ParmA.Sediao = tbSediaoA.Value;
            ParmA.IsChange = ParmA.Equals(CameraParm);
            ParmA.Type     = ParmType.A;

            //ParmB.Baipingheng = tbBaipinghengB.Value;
            //ParmB.Baoguang = tbBaoguangB.Value;
            ParmB.Baohedu      = tbBaoheduB.Value;
            ParmB.Duibidu      = tbDuibiduB.Value;
            ParmB.Gama         = tbGamaB.Value;
            ParmB.Liangdu      = tbLiangduB.Value;
            ParmB.Niguangduibi = tbNiguangduibiB.Value;
            ParmB.Qingxidu     = tbQinxiduB.Value;
            //ParmB.Sediao = tbSediaoB.Value;
            ParmB.IsChange = ParmB.Equals(CameraParm);
            ParmB.Type     = ParmType.B;

            //ParmC.Baipingheng = tbBaipinghengC.Value;
            //ParmC.Baoguang = tbBaoguangC.Value;
            ParmC.Baohedu      = tbBaoheduC.Value;
            ParmC.Duibidu      = tbDuibiduC.Value;
            ParmC.Gama         = tbGamaC.Value;
            ParmC.Liangdu      = tbLiangduC.Value;
            ParmC.Niguangduibi = tbNiguangduibiC.Value;
            ParmC.Qingxidu     = tbQinxiduC.Value;
            //ParmC.Sediao = tbSediaoC.Value;
            ParmC.IsChange = ParmC.Equals(CameraParm);
            ParmC.Type     = ParmType.C;

            var aPath = Path.Combine(path, "Microspur.set");
            var bPath = Path.Combine(path, "Panorama.set");
            var cPath = Path.Combine(path, "Portrait.set");

            File.WriteAllText(aPath, ParmA.ToJson());
            File.WriteAllText(bPath, ParmB.ToJson());
            File.WriteAllText(cPath, ParmC.ToJson());

            CommHelp.ShowTips(LanguageHelp.GetTextLanguage("保存成功"));
        }
Example #3
0
 private string GetText(string text)
 {
     return(LanguageHelp.GetTextLanguage(text));
 }
Example #4
0
        public AboutBox()
        {
            InitializeComponent();

            #region 初始化系统名称
            try
            {
                string Manufacturer    = ConfigurationManager.AppSettings["Manufacturer"];
                string ApplicationName = ConfigurationManager.AppSettings["ApplicationName"];
                this.Text = string.Format("{0}-{1}", Manufacturer, ApplicationName);
                this.labelProductName.Text   = ApplicationName;
                this.labelVersion.Text       = String.Format("{1} {0}", AssemblyVersion, LanguageHelp.GetTextLanguage("版本"));
                this.textBoxDescription.Text = "Dental Intraoral Camera,  Jun  2018 是Bangvo 注册的专利技术";
            }
            catch { }

            #endregion
        }