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; }
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); }
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(); }
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(); }