예제 #1
0
파일: VehInfo.cs 프로젝트: fedePalazz/T_HUB
 public VehInfo(THub hub, string licPlt)
 {
     InitializeComponent();
     newVeh      = false;
     this.hub    = hub;
     this.licPlt = licPlt;
 }
예제 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            #region Graphics
            // External bands colors
            titlePnl.BackColor  = ColorTranslator.FromHtml("#263238");
            titleLbl.ForeColor  = ColorTranslator.FromHtml("#eceff1");
            navBarPnl.BackColor = ColorTranslator.FromHtml("#263238");
            // Panels colors
            dashPnl.BackColor  = ColorTranslator.FromHtml("#90a4ae");
            vehsPnl.BackColor  = ColorTranslator.FromHtml("#90a4ae");
            ridesPnl.BackColor = ColorTranslator.FromHtml("#90a4ae");

            // Buttons colors
            addRideBtn.BackColor = ColorTranslator.FromHtml("#263238");
            endRideBtn.BackColor = ColorTranslator.FromHtml("#263238");

            addVehBtn.BackColor = ColorTranslator.FromHtml("#263238");
            updVehBtn.BackColor = ColorTranslator.FromHtml("#263238");
            delVehBtn.BackColor = ColorTranslator.FromHtml("#263238");
            impVehBtn.BackColor = ColorTranslator.FromHtml("#263238");
            expVehBtn.BackColor = ColorTranslator.FromHtml("#263238");

            impComplRidesBtn.BackColor = ColorTranslator.FromHtml("#263238");
            expComplRidesBtn.BackColor = ColorTranslator.FromHtml("#263238");
            delComplRidesBtn.BackColor = ColorTranslator.FromHtml("#263238");

            // Tooltips
            ToolTip toolTip1 = new ToolTip();
            toolTip1.ShowAlways = true;
            toolTip1.SetToolTip(addRideBtn, "Add a new ride");
            toolTip1.SetToolTip(endRideBtn, "End the selected ride");
            toolTip1.SetToolTip(addVehBtn, "Add a new vehicle");
            toolTip1.SetToolTip(updVehBtn, "Update the selected vehicle");
            toolTip1.SetToolTip(delVehBtn, "Remove the selected vehicle");
            toolTip1.SetToolTip(impVehBtn, "Import vehicles");
            toolTip1.SetToolTip(expVehBtn, "Export vehicles");
            toolTip1.SetToolTip(impComplRidesBtn, "Import rides");
            toolTip1.SetToolTip(expComplRidesBtn, "Export rides");
            toolTip1.SetToolTip(delComplRidesBtn, "Clear history");

            #endregion

            hub = new THubImpl();
            dashPnl.BringToFront();
            panel = "dash";
            viewCmb.SelectedIndex = 0;
        }
예제 #3
0
파일: NewRide.cs 프로젝트: fedePalazz/T_HUB
 public NewRide(THub hub)
 {
     InitializeComponent();
     this.hub = hub;
 }
예제 #4
0
파일: VehInfo.cs 프로젝트: fedePalazz/T_HUB
 public VehInfo(THub hub)
 {
     InitializeComponent();
     newVeh   = true;
     this.hub = hub;
 }