Esempio n. 1
0
        public FrmLogin()
        {
            InitializeComponent();
            string   pathExe   = AppDomain.CurrentDomain.BaseDirectory.ToString();
            InitFile oInitFile = new InitFile(pathExe + "Setting.ini");

            VarGlobal.NamaToko   = oInitFile.InitReadValue("config", "NamaToko");
            VarGlobal.AlamatToko = oInitFile.InitReadValue("config", "AlamatToko");
            VarGlobal.NoHp       = oInitFile.InitReadValue("config", "NoHp");
        }
Esempio n. 2
0
        public FrmCetakLabel()
        {
            InitializeComponent();
            string   pathExe   = AppDomain.CurrentDomain.BaseDirectory.ToString();
            InitFile oInitFile = new InitFile(pathExe + "Setting.ini");

            VarGlobal.NamaToko   = oInitFile.InitReadValue("config", "NamaToko");
            VarGlobal.AlamatToko = oInitFile.InitReadValue("config", "AlamatToko");
            VarGlobal.NoHp       = oInitFile.InitReadValue("config", "NoHp");

            this.Text          = "KM-POS | " + VarGlobal.NamaToko + " | Cetak Label Barang";
            lblNamaToko.Text   = VarGlobal.NamaToko;
            lblAlamatToko.Text = VarGlobal.AlamatToko;
            lblTelpToko.Text   = VarGlobal.NoHp;
        }