Example #1
0
        private void shapedButton1_Click(object sender, EventArgs e)
        {
            string result = ADD_FLOOR();

            if (result == "done")
            {
                MSGBOX mdg = new MSGBOX(MessageAlertHeder.Success(), "FLOOR ADDED SUCCESSFULLY!", MessageAlertImage.Success());
                mdg.ShowDialog();
                TXT_FLOOR_NAME.Clear();
                TXT_FLOOR_NAME.Focus();
                LOAD_FLOOR_LIST();
            }
        }
Example #2
0
 private void BTN_NEW_FLOOR_Click(object sender, EventArgs e)
 {
     if (PNL_ADD_FLOOR.Visible == false)
     {
         PNL_ADD_FLOOR.Visible = true;
         PNL_ADD_FLOOR.Size    = new Size(288, 80);
         TXT_FLOOR_NAME.Focus();
     }
     else
     {
         PNL_ADD_FLOOR.Visible = false;
         PNL_ADD_FLOOR.Size    = new Size(0, 0);
     }
 }