Ejemplo n.º 1
0
 public ListUsersForm(LayoutForm layout_form)
 {
     InitializeComponent();
     this.layout_form = layout_form;
     UserController.fillDataGridView(dataGridView1);
     AddActionsToDGV(this.layout_form.auth.permission_id);
 }
Ejemplo n.º 2
0
 public AddTravelSectionForm(LayoutForm layout_form)
 {
     InitializeComponent();
     this.information_label.Text = "";
     _layout_form = layout_form;
     this.RefreshActions();
     this.RefreshTrainState();
 }
Ejemplo n.º 3
0
 public RegisterForm(LayoutForm layoutForm)
 {
     InitializeComponent();
     is_password_validated       = false;
     this.information_label.Text = "";
     this.successfullColor       = Color.FromArgb(21, 87, 36);
     this.wrongColor             = information_label.ForeColor;
     _layoutForm = layoutForm;
     PermissionController.FeedComboBox(combobox_rol);
 }
Ejemplo n.º 4
0
 public MenuForm(LayoutForm layoutForm)
 {
     InitializeComponent();
     _layoutForm = layoutForm;
     RemoveButtonOnDependingOnRol();
     hideAllSubMenu();
     toggleSubMenu(panelSubMenu1);
     navButtonColor       = Color.FromArgb(50, 70, 211);
     highLightButtonColor = Color.FromArgb(29, 45, 163);
     highLightButton(btn_viajes_en_transito);
 }
Ejemplo n.º 5
0
 public DetailsStationForm(LayoutForm layoutForm, int id)
 {
     InitializeComponent();
     _layoutForm = layoutForm;
     this.id     = id;
     FeedLabelStacion();
     FeedDataGridView();
     dataGridView1.Columns[0].HeaderText = "Código";
     dataGridView1.Columns[1].HeaderText = "Nombre";
     dataGridView1.Columns[2].HeaderText = "Capacidad";
 }
Ejemplo n.º 6
0
 public EditUserForm(LayoutForm layoutForm, int id)
 {
     InitializeComponent();
     _layoutForm                 = layoutForm;
     is_password_validated       = false;
     this.information_label.Text = "";
     this.successfullColor       = Color.FromArgb(21, 87, 36);
     this.wrongColor             = information_label.ForeColor;
     this.id = id;
     FeedFormWithUserValues();
 }
Ejemplo n.º 7
0
 public ListStationsForm(LayoutForm layoutForm)
 {
     InitializeComponent();
     _layoutForm = layoutForm;
     StationController.FeedDataGridList(dataGridView);
     dataGridView.Columns[0].HeaderText = "Código";
     dataGridView.Columns[1].HeaderText = "Nombre";
     dataGridView.Columns[2].HeaderText = "Capacidad";
     StationController.AddDetailsLinkColumn(dataGridView);
     StationController.AddEditLinkColumn(dataGridView);
     StationController.AddDeleteLinkColumn(dataGridView);
 }
Ejemplo n.º 8
0
 public EditSationForm(LayoutForm layoutForm, int id)
 {
     InitializeComponent();
     _layoutForm = layoutForm;
     this.id     = id;
     FeedTextBoxs();
     FeedComboBoxStation();
     this.information_label.Text = "";
     this.successfullColor       = Color.FromArgb(21, 87, 36);
     this.wrongColor             = information_label.ForeColor;
     this.checked_            = false;
     combobox_station.Enabled = checked_;
 }
Ejemplo n.º 9
0
 public LoginForm(LayoutForm layout_form)
 {
     InitializeComponent();
     this.errorLabel.Text = "";
     _layout_form         = layout_form;
 }