コード例 #1
0
        //<<METODOS INTERNOS>>

        public void OnAddLocalCreateLocalButton_Click(string lName, int lnum, string lhour, string lespecific)
        {
            if (AddLocalCreateLocalButton_Clicked != null)
            {
                string result = AddLocalCreateLocalButton_Clicked(this, new LocalesEventArgs()
                {
                    EspecificText = lespecific, HoursText = lhour, IdentNumText = lnum, NameText = lName
                });
                if (result == null)
                {
                    AddLocalInvalidCredentialsTextBox.AppendText("Local creado correctamente!!");
                    Thread.Sleep(2000);
                    AddLocalOwnerNameTextBox.Clear();
                    AddLocalAttentionHourTextbox.Clear();
                    AddLocalIdentNumTextbox.Clear();
                    AddLocalInvalidCredentialsTextBox.Clear();
                    InitializePanel.BringToFront();
                    AddLocalStoreCatTextBox.Clear();
                    AddLocalNumSalaTextBox.Clear();
                }
                else
                {
                    AddLocalInvalidCredentialsTextBox.AppendText(result);
                    Thread.Sleep(2000);
                    AddLocalOwnerNameTextBox.Clear();
                    AddLocalAttentionHourTextbox.Clear();
                    AddLocalIdentNumTextbox.Clear();
                    AddLocalInvalidCredentialsTextBox.Clear();
                    InitializePanel.BringToFront();
                    AddLocalStoreCatTextBox.Clear();
                    AddLocalNumSalaTextBox.Clear();
                }
            }
        }
コード例 #2
0
 private void AddLocalGoBack_Click(object sender, EventArgs e)
 {
     AddLocalOwnerNameTextBox.Clear();
     AddLocalAttentionHourTextbox.Clear();
     AddLocalIdentNumTextbox.Clear();
     AddLocalInvalidCredentialsTextBox.Clear();
     InitializePanel.BringToFront();
     AddLocalStoreCatTextBox.Clear();
     AddLocalNumSalaTextBox.Clear();
 }