Ejemplo n.º 1
0
 private void addfloatvoda_Click(object sender, EventArgs e)
 {
     AddingMoney ezypesa = new AddingMoney();
     ezypesa.addtoezy = this;
     ezypesa.frm = "ezy";
     ezypesa.addchange = "add";
     ezypesa.addon();
     ezypesa.ShowDialog();
 }
Ejemplo n.º 2
0
 private void addfloatairtel_Click(object sender, EventArgs e)
 {
     AddingMoney airtl = new AddingMoney();
     airtl.addtoairtel = this;
     airtl.frm = "airtel";
     airtl.addchange = "add";
        // airtl.addon();
     airtl.ShowDialog();
 }
Ejemplo n.º 3
0
 private void addfloatvoda_Click(object sender, EventArgs e)
 {
     AddingMoney tigo = new AddingMoney();
     tigo.addtotigo = this;
     tigo.frm = "tigo";
     tigo.addchange = "add";
     tigo.addon();
     tigo.ShowDialog();
 }
Ejemplo n.º 4
0
        private void addcashb_Click(object sender, EventArgs e)
        {
            AddingMoney cashb = new AddingMoney();
            cashb.addtocash = this;
            cashb.frm = "cash";
            cashb.addchange = "add";

            cashb.ShowDialog();
        }
Ejemplo n.º 5
0
 private void addfloatvoda_Click(object sender, EventArgs e)
 {
     AddingMoney voda = new AddingMoney();
     voda.addtovoda = this;
     voda.frm = "voda";
     voda.addchange = "add";
        // voda.addon();
     voda.ShowDialog();
 }
Ejemplo n.º 6
0
 private void addfloatvoda_Click(object sender, EventArgs e)
 {
     AddingMoney crdb = new AddingMoney();
     crdb.addtocrdb = this;
     crdb.frm = "crdb";
     crdb.addchange = "add";
        // crdb.addon();
     crdb.ShowDialog();
 }
Ejemplo n.º 7
0
        //SOME CONTROLS ON NAVIGATION....................................................................
        private void Home_MouseClick(object sender, MouseEventArgs e)
        {
            int s;

            HomePanel.Visible = true;
            LogsPanel.Visible = false;
            reportpanel.Visible = false;
            labels.Visible = true;
            wpanel.Visible = false;
            labels.Text = "HOME";

            XDocument cash = XDocument.Load(@"RuntimeData.xml");

            var users = from usr in cash.Descendants("services")
                        select new
                        {

                            mwnz = usr.Element("mwanzo").Value

                        };

            foreach (var use in users)
            {
                s=  int.Parse(use.mwnz);
                if (s == 0)
                {
                    AddingMoney mpya = new AddingMoney();
                    mpya.addtocash = this;
                    mpya.frm = "cash";
                    mpya.addchange = "change";
                    mpya.changeon();
                    mpya.ShowDialog();
                }
            }
        }
Ejemplo n.º 8
0
        private void floatserv(string a)
        {
            XDocument hela = XDocument.Load(@"RuntimeData.xml");

            var users = from usr in hela.Descendants("services")
                        select new
                        {

                            csh = usr.Element("mwanzo").Value,
                            voda = usr.Element("vodacom").Value,
                            ezy = usr.Element("zantel").Value,
                            airtel = usr.Element("airtel").Value,
                            tigo = usr.Element("tigo").Value,
                            crdb = usr.Element("crdb").Value
                        };

            foreach (var use in users)
            {
                if (use.csh == "0")
                {
                    AddingMoney mpya = new AddingMoney();
                    mpya.addtocash = this;
                    mpya.frm = "cash";
                    mpya.addchange = "change";
                    mpya.changeon();
                    mpya.ShowDialog();
                }
                    if (Services.SelectedItem.ToString() == "AIRTEL MONEY")
                    {
                        if (use.airtel == "0")
                        {
                            AddingMoney mpya = new AddingMoney();
                            mpya.addtocash = this;
                            mpya.frm = "airtel";
                            mpya.addchange = "change";
                            mpya.changeon();
                            mpya.ShowDialog();
                        }
                    }
                    else if (Services.SelectedItem.ToString() == "EZY PESA")
                    {
                        if (use.ezy == "0")
                        {
                            AddingMoney mpya = new AddingMoney();
                            mpya.addtocash = this;
                            mpya.frm = "ezy";
                            mpya.addchange = "change";
                            mpya.changeon();
                            mpya.ShowDialog();
                        }
                    }
                    else if (Services.SelectedItem.ToString() == "TIGO PESA")
                    {
                        if (use.tigo == "0")
                        {
                            AddingMoney mpya = new AddingMoney();
                            mpya.addtocash = this;
                            mpya.frm = "tigo";
                            mpya.addchange = "change";
                            mpya.changeon();
                            mpya.ShowDialog();
                        }
                    }
                    else if (Services.SelectedItem.ToString() == "VODACOM M-PESA")
                    {
                        if (use.voda == "0")
                        {
                            AddingMoney mpya = new AddingMoney();
                            mpya.addtocash = this;
                            mpya.frm = "voda";
                            mpya.addchange = "change";
                            mpya.changeon();
                            mpya.ShowDialog();
                        }
                    }
                    else if (Services.SelectedItem.ToString() == "CRDB BANK")
                    {
                        if (use.crdb == "0")
                        {
                            AddingMoney mpya = new AddingMoney();
                            mpya.addtocash = this;
                            mpya.frm = "crdb";
                            mpya.addchange = "change";
                            mpya.changeon();
                            mpya.ShowDialog();
                        }

                    }

            }
        }