public StartTrip(Best_Logistic_Administrator admin, string route, string nextBranch, List <int> trackingNumList) { InitializeComponent(); branchId = staff.BranchId; if (route == "Pending Delivery") { route = "Home"; } if (nextBranch == "2") { nextBranch = null; } this.nextBranch = nextBranch; this.trackingNumList = trackingNumList; this.admin = admin; status.Text = "Start trip to " + route; }
public EndTrip(Best_Logistic_Administrator admin, string branchName, string route, DataGridView dataGridView) { InitializeComponent(); branchId = staff.BranchId; this.dataGridView = dataGridView; this.route = route; this.admin = admin; if (route == null) { status.Text = "End trip to " + branchName; } else { status.Text = "End trip from " + branchName; } }
public AssignRoute(Best_Logistic_Administrator admin, List <Branch> list, List <int> trackingNum) { InitializeComponent(); Dictionary <string, string> comboSource = new Dictionary <string, string>(); for (int i = 0; i < list.Count; i++) { comboSource.Add(list[i].Id, list[i].Name); } comboSource.Add("NULL", "Home"); comboSource.Add("NA", "Not Assigned"); dbroute.DataSource = new BindingSource(comboSource, null); dbroute.DisplayMember = "Value"; dbroute.ValueMember = "Key"; dbroute.Enabled = true; this.trackingNum = trackingNum; this.admin = admin; }
private void Button1_Click(object sender, EventArgs e) { if (tbUsername.Text == "" || tbPassword.Text == "") { MessageBox.Show("Username and Password cannot be empty", "Error message"); return; } Staff staff = Authentication.SignInStaff(Convert.ToInt32(tbUsername.Text), tbPassword.Text); if (staff == null) { MessageBox.Show("Username and Password are incorrent", "Error message"); } else { this.Hide(); Best_Logistic_Administrator main_form = new Best_Logistic_Administrator(); main_form.ShowDialog(); this.Close(); } }
public UpdateParcelDetails(Best_Logistic_Administrator admin, int trackingNo) { InitializeComponent(); trackNo = trackingNo; this.admin = admin; }
public CreateNewParcel(Best_Logistic_Administrator admin) { InitializeComponent(); this.admin = admin; }
public OnlineLodge(Best_Logistic_Administrator home) { InitializeComponent(); this.home = home; }