Exemplo n.º 1
0
        private void btn_productitems_Click(object sender, EventArgs e)
        {
            ADDMenuItem addproitms = new ADDMenuItem();

            panel1.Controls.Clear();
            panel1.Controls.Add(addproitms);
        }
Exemplo n.º 2
0
        private void metroTileItem8_Click(object sender, EventArgs e)
        {
            ADDMenuItem ist = new ADDMenuItem();

            contentpanel.Controls.Clear();
            contentpanel.Controls.Add(ist);
        }
Exemplo n.º 3
0
 private void btn_edit_Click(object sender, EventArgs e)
 {
     if (dgv_productitems.SelectedRows.Count > 0)
     {
         foreach (DataGridViewRow dr in dgv_productitems.SelectedRows)
         {
             item_id = Convert.ToInt32(dr.Cells["col_itemid"].Value);
         }
         ADDMenuItem addproitems = new ADDMenuItem();
         panel1.Controls.Clear();
         panel1.Controls.Add(addproitems);
     }
     else
     {
         MessageBox.Show("Please Select A Row", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemplo n.º 4
0
 private void cbo_applicabletimeperiod_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cbo_applicabletimeperiod.SelectedIndex == 1)
     {
         checkedListBox1.Show();
         ADDMenuItem.Animate(panel18, ADDMenuItem.Effect.Slide, 150, 90);
         ADDMenuItem.Animate(panel16, ADDMenuItem.Effect.Slide, 150, 90);
         app_period = true;
     }
     else if (cbo_applicabletimeperiod.SelectedIndex == 0)
     {
         if (app_period == true)
         {
             ADDMenuItem.Animate(panel18, ADDMenuItem.Effect.Slide, 150, 270);
             ADDMenuItem.Animate(panel16, ADDMenuItem.Effect.Slide, 150, 270);
             app_period = false;
         }
     }
 }
Exemplo n.º 5
0
 private void txt_name_TextChanged(object sender, EventArgs e)
 {
     lbl_preview_name.Text = txt_name.Text;
     panel17.BackColor     = btn_darkblue.BackColor;
     if (text_value == false)
     {
         if (txt_name.TextLength == 1)
         {
             ADDMenuItem.Animate(panel17, ADDMenuItem.Effect.Slide, 150, 90);
             text_value = true;
         }
     }
     else
     {
         if (txt_name.TextLength == 0)
         {
             ADDMenuItem.Animate(panel17, ADDMenuItem.Effect.Slide, 150, 90);
             text_value = false;
         }
     }
 }