Esempio n. 1
0
 public static Form ReturnActForm(int _id)
 {
     Form frm = null;
     if (Session.currAct == Session.Act.Producers)
     {
         frm = new FProducers(_id);
     }
     if (Session.currAct == Session.Act.Items)
     {
         frm = new FItems(_id);
     }
     if (Session.currAct == Session.Act.Storages)
     {
         frm = new FStorages(_id);
     }
     if (Session.currAct == Session.Act.Products)
     {
         frm = new FProducts(_id);
     }
     if (Session.currAct == Session.Act.Hardwares)
     {
         frm = new FHardwares(_id);
     }
     return frm;
 }