예제 #1
0
        private void txt_total_TextChanged(object sender, EventArgs e)
        {
            txt_koushui.Text = txt_total.Text;
            INIClass ini_class = new INIClass("D:\\yinuo.ini");

            ini_class.IniWriteValue("JiXiangCaiJi", "ZongShuiE", txt_koushui.Text);
        }
예제 #2
0
        public XiaoXiangCaiji()
        {
            InitializeComponent();

            INIClass ini_class = new INIClass("D:\\yinuo.ini");
            string   shuier    = ini_class.IniReadValue("KaiPiao", "ShuiEr");

            _txt_shuie.Text        = shuier;
            _btn_jine.Text         = ini_class.IniReadValue("KaiPiao", "HeJi"); //(Double.Parse(shuier) / 0.17).ToString("f2");
            _txt_total_jiner.Text  = _btn_jine.Text;
            _txt_total_shuier.Text = _txt_shuie.Text;
            ini_class.IniWriteValue("XiaoXiangCaiJi", "ZongShuiE", _btn_jine.Text);
        }