Ejemplo n.º 1
0
        public FORM_INICIO()
        {
            InitializeComponent();

            if (Properties.Settings.Default.ip == null || Properties.Settings.Default.ip == "")
            {
                DialogResult DR = MessageBox.Show("You have not set a host yet, you need to add one to proceed", "Not Configured", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

                if (DR == DialogResult.Yes)
                {
                    FORM_SETTINGS Settings = new FORM_SETTINGS();
                    Settings.ShowDialog();
                }

                else
                {
                    this.Close();
                }
            }

            else
            {
                FillDataGridView_Items();
                FillDataGridView_Vehicles();
            }
        }
Ejemplo n.º 2
0
        private void BUTTON_SETTINGS_Click(object sender, EventArgs e)
        {
            FORM_SETTINGS Settings = new FORM_SETTINGS();

            Settings.ShowDialog();
        }