Exemple #1
0
 private void LVDayBook_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     try
     {
         if (userrights.Rows.Count > 0)
         {
             if (userrights.Rows[31]["u"].ToString() == "True")
             {
                 this.Enabled = false;
                 String        str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[1].Text;
                 SaletypeEntry bd  = new SaletypeEntry(this, master, tabControl);
                 bd.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[0].Text, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[4].Text);
                 // bd.Show();
                 master.AddNewTab(bd);
             }
             else
             {
                 MessageBox.Show("You don't have Permission to View");
                 return;
             }
         }
     }
     finally
     {
         this.Enabled = true;
     }
 }
Exemple #2
0
 private void LVDayBook_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     try
     {
         this.Enabled = false;
         String        str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[1].Text;
         SaletypeEntry bd  = new SaletypeEntry(this, master, tabControl);
         bd.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[0].Text, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[4].Text);
         // bd.Show();
         master.AddNewTab(bd);
     }
     finally
     {
         this.Enabled = true;
     }
 }