private void button1_Click(object sender, EventArgs e) { if (trigger == 0) { if(global.CheckLvl(1,1)) { Register reg = new Register(global); reg.ShowDialog(); } } if (trigger == 1) { ViewTicketData form = new ViewTicketData(); form.ShowDialog(); } if (trigger == 2) { ViewItemData f = new ViewItemData(global); f.ShowDialog(); } }
//////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// public void SearchVisual() { ViewItemData f = new ViewItemData(1,global); f.ShowDialog(); Search(global.LastCode1,3); }