private void reset_Click(object sender, RoutedEventArgs e)
 {
     if (tripload.IsChecked == true)
     {
         vhlno.Text     = string.Empty; loaddate.Text = DateTime.Now.ToShortDateString(); tripnumber.Text = string.Empty; driname.Text = string.Empty; ldna.Text = string.Empty; form.Text = string.Empty; too.Text = string.Empty; stkm.Text = string.Empty; chln.Text = string.Empty; ldadv.Text = string.Empty; driadv.Text = string.Empty; frgt.Text = string.Empty; clname.Text = string.Empty; wgt.Text = string.Empty; ti = 2;
         load.IsChecked = false; trailer.IsChecked = false; tripload.IsChecked = false;
         lpg_trip_close_img1.Visibility = System.Windows.Visibility.Hidden;
         lpg_trip_close_img2.Visibility = System.Windows.Visibility.Visible;
         time1.Start();
         chr = "r";
     }
     else if (tripunload.IsChecked == true)
     {
         vhlno.Text     = string.Empty; undt.Text = DateTime.Now.ToShortDateString(); endkms.Text = string.Empty; totalkm.Text = string.Empty; unlodwgt.Text = string.Empty; tripnumber.Text = string.Empty; driname.Text = string.Empty; ldna.Text = string.Empty;
         load.IsChecked = false; trailer.IsChecked = false; tripunload.IsChecked = false;
         lpg_trip_close_img1.Visibility = System.Windows.Visibility.Hidden;
         lpg_trip_close_img2.Visibility = System.Windows.Visibility.Visible;
         time1.Start();
         chr = "r";
     }
     else if (tripclose.IsChecked == true)
     {
         Load_Trailer lt = new Load_Trailer();
         lt.diesel_back_click(sender, e);
         lt.CLEAR();
         val11.Text     = "0"; val12.Text = "0"; val13.Text = "0"; val14.Text = "0"; val15.Text = "0"; val16.Text = "0";
         tripdese.Text  = string.Empty; dieselamnt.Text = string.Empty; tripmilg.Text = string.Empty; frtpty.Text = string.Empty; tripexpe.Text = string.Empty; profit.Text = string.Empty; tripnumber.Text = string.Empty; vhlno.Text = string.Empty; loaddate.Text = DateTime.Now.ToShortDateString(); driname.Text = string.Empty; ldna.Text = string.Empty; driver_bal.Text = string.Empty;
         load.IsChecked = false; trailer.IsChecked = false; tripclose.IsChecked = false;
         lpg_trip_close_img1.Visibility = System.Windows.Visibility.Hidden;
         lpg_trip_close_img2.Visibility = System.Windows.Visibility.Visible;
         time1.Start();
         chr = "r";
     }
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 13 "..\..\MainWindow1.xaml"
                ((Project_Transport.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.Title_Name = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.home = ((System.Windows.Controls.Button)(target));

            #line 20 "..\..\MainWindow1.xaml"
                this.home.Click += new System.Windows.RoutedEventHandler(this.Home_Button_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.User_Name = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.ribbon = ((System.Windows.Controls.Ribbon.Ribbon)(target));
                return;

            case 6:

            #line 36 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.main_page_click);

            #line default
            #line hidden
                return;

            case 7:

            #line 37 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.exit_click);

            #line default
            #line hidden
                return;

            case 8:

            #line 46 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.New_Entry_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 50 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Update_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 54 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.View_Detail_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 57 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Report_View_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 62 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.diesel_card_entry_click);

            #line default
            #line hidden
                return;

            case 13:

            #line 65 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.diesel_card_edit_click);

            #line default
            #line hidden
                return;

            case 14:

            #line 68 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.deposit_entry_click);

            #line default
            #line hidden
                return;

            case 15:

            #line 73 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.diesel_view_click);

            #line default
            #line hidden
                return;

            case 16:

            #line 78 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.lpg_entry_click);

            #line default
            #line hidden
                return;

            case 17:

            #line 81 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.trip_update_click);

            #line default
            #line hidden
                return;

            case 18:

            #line 84 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.trip_view_click);

            #line default
            #line hidden
                return;

            case 19:

            #line 88 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.load_line_click);

            #line default
            #line hidden
                return;

            case 20:

            #line 91 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.load_update_click);

            #line default
            #line hidden
                return;

            case 21:

            #line 94 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.loads_view_click);

            #line default
            #line hidden
                return;

            case 22:

            #line 100 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.driver_new_entry_click);

            #line default
            #line hidden
                return;

            case 23:

            #line 103 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.driver_update_click);

            #line default
            #line hidden
                return;

            case 24:

            #line 106 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.driver_payment_click);

            #line default
            #line hidden
                return;

            case 25:

            #line 109 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.load_payment_click);

            #line default
            #line hidden
                return;

            case 26:

            #line 112 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.driver_view_click);

            #line default
            #line hidden
                return;

            case 27:

            #line 117 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.body_builder_panel_open);

            #line default
            #line hidden
                return;

            case 28:

            #line 120 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.electrical_panel_open);

            #line default
            #line hidden
                return;

            case 29:

            #line 123 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.trailer_tank_panel_open);

            #line default
            #line hidden
                return;

            case 30:

            #line 126 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.shop_panel_open);

            #line default
            #line hidden
                return;

            case 31:

            #line 129 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.mechanical_panel_open);

            #line default
            #line hidden
                return;

            case 32:

            #line 132 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.others_panel_open);

            #line default
            #line hidden
                return;

            case 33:

            #line 135 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.maintenance_view_panel_open);

            #line default
            #line hidden
                return;

            case 34:

            #line 142 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.lpg_tyre_entry_click);

            #line default
            #line hidden
                return;

            case 35:

            #line 145 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.load_tyre_entry_click);

            #line default
            #line hidden
                return;

            case 36:

            #line 148 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.trailer_tyre_entry_click);

            #line default
            #line hidden
                return;

            case 37:

            #line 151 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.lpg_tyre_price_click);

            #line default
            #line hidden
                return;

            case 38:

            #line 157 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.expiry_bill_open);

            #line default
            #line hidden
                return;

            case 39:

            #line 160 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.expiry_update_open);

            #line default
            #line hidden
                return;

            case 40:

            #line 163 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.expiry_bill_view_open);

            #line default
            #line hidden
                return;

            case 41:

            #line 168 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.transport_panel_open);

            #line default
            #line hidden
                return;

            case 42:

            #line 171 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.transport_name_panel_open);

            #line default
            #line hidden
                return;

            case 43:

            #line 174 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.User_Creation_panel_open);

            #line default
            #line hidden
                return;

            case 44:
                this.LOGIN_PANEL = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 45:

            #line 179 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Label)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 46:
                this.login_panel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 47:
                this.today_date = ((System.Windows.Controls.Label)(target));
                return;

            case 48:
                this.time_now = ((System.Windows.Controls.Label)(target));
                return;

            case 49:
                this.error_lbl = ((System.Windows.Controls.Label)(target));
                return;

            case 50:
                this.user_name_txt = ((System.Windows.Controls.TextBox)(target));

            #line 199 "..\..\MainWindow1.xaml"
                this.user_name_txt.GotFocus += new System.Windows.RoutedEventHandler(this.user_name_txt_GotFocus);

            #line default
            #line hidden
                return;

            case 51:
                this.user_password_txt = ((System.Windows.Controls.PasswordBox)(target));

            #line 201 "..\..\MainWindow1.xaml"
                this.user_password_txt.KeyDown += new System.Windows.Input.KeyEventHandler(this.sign_in_btn_KeyDown);

            #line default
            #line hidden
                return;

            case 52:
                this.sign_in_btn = ((System.Windows.Controls.Button)(target));

            #line 202 "..\..\MainWindow1.xaml"
                this.sign_in_btn.Click += new System.Windows.RoutedEventHandler(this.sign_in_btn_Click);

            #line default
            #line hidden
                return;

            case 53:
                this.panel0 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 54:
                this.img = ((System.Windows.Controls.Image)(target));
                return;

            case 55:
                this.panel1 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 56:
                this.img1 = ((System.Windows.Controls.Image)(target));
                return;

            case 57:
                this.panel2 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 58:
                this.img2 = ((System.Windows.Controls.Image)(target));
                return;

            case 59:
                this.panel3 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 60:
                this.img3 = ((System.Windows.Controls.Image)(target));
                return;

            case 61:
                this.panel4 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 62:
                this.title_panel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 63:
                this.title_name = ((System.Windows.Controls.TextBox)(target));
                return;

            case 64:

            #line 335 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.title_save_click);

            #line default
            #line hidden
                return;

            case 65:

            #line 336 "..\..\MainWindow1.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Banner_Name_Change_Back_Click);

            #line default
            #line hidden
                return;

            case 66:
                this.vehicle_panel = ((Project_Transport.Vehicle_Details)(target));
                return;

            case 67:
                this.diesel_panel = ((Project_Transport.Diesel_Card)(target));
                return;

            case 68:
                this.driver_panel = ((Project_Transport.Driver_Details)(target));
                return;

            case 69:
                this.trip_entry_panel = ((Project_Transport.Trip_Entry)(target));
                return;

            case 70:
                this.trip_update_panel = ((Project_Transport.Trip_Update)(target));
                return;

            case 71:
                this.trip_view_panel = ((Project_Transport.Trip_View)(target));
                return;

            case 72:
                this.body_expense = ((Project_Transport.Body_Maintenance)(target));
                return;

            case 73:
                this.electrician_panel = ((Project_Transport.Electrician_Maintenance)(target));
                return;

            case 74:
                this.tank_panel = ((Project_Transport.Tank_Maintenance)(target));
                return;

            case 75:
                this.shop_panel = ((Project_Transport.Shop_Expense)(target));
                return;

            case 76:
                this.mechanical_panel = ((Project_Transport.Mechanical_Expense)(target));
                return;

            case 77:
                this.other_panel = ((Project_Transport.Other_Expense)(target));
                return;

            case 78:
                this.maintenance_view_panel = ((Project_Transport.Maintenance_view)(target));
                return;

            case 79:
                this.tyre_panel = ((Project_Transport.Tyre_Maintenance)(target));
                return;

            case 80:
                this.baner = ((Project_Transport.Baner_name)(target));
                return;

            case 81:
                this.transport_list = ((Project_Transport.transport_list_Panel)(target));
                return;

            case 82:
                this.vehicle_view = ((Project_Transport.Vehicle_View)(target));
                return;

            case 83:
                this.diesel_card_view = ((Project_Transport.Diesel_Card_View)(target));
                return;

            case 84:
                this.diesel_card_deposit = ((Project_Transport.Diesel_Card_Deposit)(target));
                return;

            case 85:
                this.diesel_card_edit = ((Project_Transport.Diesel_Card_Edit)(target));
                return;

            case 86:
                this.driver_salary = ((Project_Transport.Driver_Payment)(target));
                return;

            case 87:
                this.driver_view = ((Project_Transport.Driver_View)(target));
                return;

            case 88:
                this.driver_update = ((Project_Transport.Driver_Update)(target));
                return;

            case 89:
                this.vehicle_update = ((Project_Transport.Vehicle_Update)(target));
                return;

            case 90:
                this.profit_viewer = ((Project_Transport.Profit_Viewer)(target));
                return;

            case 91:
                this.user_create = ((Project_Transport.UserCreation)(target));
                return;

            case 92:
                this.tyre_report = ((Project_Transport.tyre)(target));
                return;

            case 93:
                this.load_trailer = ((Project_Transport.Load_Trailer)(target));
                return;

            case 94:
                this.load_trailer_view = ((Project_Transport.Load_Trailer_Trip_View)(target));
                return;

            case 95:
                this.load_pay = ((Project_Transport.Load_Payment)(target));
                return;

            case 96:
                this.load_update = ((Project_Transport.Update)(target));
                return;

            case 97:
                this.trailer_tyre = ((Project_Transport.Trailer_Tyre_Entry)(target));
                return;

            case 98:
                this.load_tyre = ((Project_Transport.load_tyre)(target));
                return;

            case 99:
                this.dashboard = ((Project_Transport.Dashboard)(target));
                return;

            case 100:
                this.expiry_bill = ((Project_Transport.Expiry_bill)(target));
                return;

            case 101:
                this.expiry_bill_update = ((Project_Transport.Expiry_bill_update)(target));
                return;

            case 102:
                this.expiry_bill_view = ((Project_Transport.Expiry_view)(target));
                return;
            }
            this._contentLoaded = true;
        }