Example #1
0
        private void Tree_Load(object sender, EventArgs e)
        {
            this.Width  = FormSize.Width(this.Tag.ToString());
            this.Height = FormSize.Heigth(this.Tag.ToString());

            initialLocation.X = 0;
            initialLocation.Y = 0;
            this.Location     = initialLocation;
        }
Example #2
0
        private void CustomerCard_Load(object sender, EventArgs e)
        {
            int IFW = FormSize.Width(Singleton <Tree> .Instance.Tag.ToString());

            initialLocation.X = IFW;
            initialLocation.Y = 0;
            this.Location     = initialLocation;
            // dtpSupport_End_Date.Value = Convert.ToDateTime("1990-01-01");
            //dtpDue_Date.Value = Convert.ToDateTime("1990-01-01");
            //dtpAdded_Date.Value = Convert.ToDateTime("1990-01-01");
            /****************/
        }
        private void NoRespondLast30Days_Load(object sender, EventArgs e)
        {
            this.Width = FormSize.Width(this.Tag.ToString());
            this.Height = FormSize.Heigth(this.Tag.ToString());

            int IFW = FormSize.Width(Singleton<Tree>.Instance.Tag.ToString());
            initialLocation.X = IFW;
            initialLocation.Y = 0;
            this.Location = initialLocation;
            Application.DoEvents();

            List<HistoryModel> lm = NoRespondLast30DaysDA.NoRespondLast30Days(Config.VBR4000Connection);
            BindList(lm);
        }
Example #4
0
        private void CustomerList_Load(object sender, EventArgs e)
        {
            this.Width  = FormSize.Width(this.Tag.ToString());
            this.Height = FormSize.Heigth(this.Tag.ToString());

            int IFW = FormSize.Width(Singleton <Tree> .Instance.Tag.ToString());

            initialLocation.X = IFW;
            initialLocation.Y = 0;
            this.Location     = initialLocation;
            Application.DoEvents();
            List <CustomerModel> lm = CustomerDA.GetAllCustomer(Config.VBR4000Connection);

            BindList(lm);
        }
        private void DueCustomersReportViewer_Load(object sender, EventArgs e)
        {
            this.Width  = FormSize.Width(this.Tag.ToString());
            this.Height = FormSize.Heigth(this.Tag.ToString());

            int IFW = FormSize.Width(Singleton <Tree> .Instance.Tag.ToString());

            initialLocation.X = IFW;
            initialLocation.Y = 0;
            this.Location     = initialLocation;
            Application.DoEvents();

            this.CustomerModelBindingSource.DataSource = Customers;
            this.reportViewer1.RefreshReport();
        }
        private void NoRespondLast30DaysReportViewer_Load(object sender, EventArgs e)
        {
            this.Width  = FormSize.Width(this.Tag.ToString());
            this.Height = FormSize.Heigth(this.Tag.ToString());

            int IFW = FormSize.Width(Singleton <Tree> .Instance.Tag.ToString());

            initialLocation.X = IFW;
            initialLocation.Y = 0;
            this.Location     = initialLocation;
            Application.DoEvents();

            this.BindingSource.DataSource = Historys;
            this.ReportViewer.RefreshReport();
        }
Example #7
0
        private void Main_Load(object sender, EventArgs e)
        {
            this.Width  = FormSize.Width(this.Tag.ToString());
            this.Height = FormSize.Heigth(this.Tag.ToString());

            initialLocation.X = 0;
            initialLocation.Y = 0;
            this.Location     = initialLocation;

            Singleton <Tree> .Instance.MdiParent = Main.mdi;
            Application.DoEvents();
            Singleton <Tree> .Instance.Show();

            Application.DoEvents();
            Singleton <Tree> .Instance.Activate();

            Application.DoEvents();
        }