Пример #1
0
        private void Pending_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            object item2 = pending.SelectedItem;

            string id      = (pending.SelectedCells[0].Column.GetCellContent(item2) as TextBlock).Text;
            int    idparse = Int32.Parse(id);
            string type    = (pending.SelectedCells[2].Column.GetCellContent(item2) as TextBlock).Text;
            string pos     = "Employee";
            Window main    = GetWindow(this);

            main.Hide();
            ApprovalModal app = new ApprovalModal(mitem, idparse, type, pos);

            app.ShowDialog();
            main.Close();
            StaticPendingList.staticPendingList.Clear();
        }
Пример #2
0
        private void Approval_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            object item2 = approval.SelectedItem;

            id = (approval.SelectedCells[0].Column.GetCellContent(item2) as TextBlock).Text;
            int idparse = Int32.Parse(id);

            type = (approval.SelectedCells[2].Column.GetCellContent(item2) as TextBlock).Text;

            string pos = mitem._POSITION;

            Window main = GetWindow(this);

            main.Hide();
            ApprovalModal app = new ApprovalModal(mitem, idparse, type, pos);

            app.ShowDialog();
            main.Close();
            StaticHRList.HRlist.Clear();
            StaticApprovalList.staticApprovalList.Clear();
        }