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 btnnew_Click(object sender, EventArgs e)
        {
            SaletypeEntry frm = new SaletypeEntry(master, tabControl);

            master.AddNewTab(frm);
            // frm.MdiParent = this;
            //frm.StartPosition = FormStartPosition.WindowsDefaultLocation;
            //frm.Show();
        }
Exemple #3
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;
     }
 }