private void CreateUser()
        {
            int accessId = DataManagement.CreateAccessRight(Read3Tick.IsChecked, true, true,
                                                            true, Read1Tick.IsChecked, Write1Tick.IsChecked, Delete1Tick.IsChecked, Permanent1Tick.IsChecked,
                                                            Read2Tick.IsChecked, Write2Tick.IsChecked, Delete2Tick.IsChecked, Read4Tick.IsChecked, Write4Tick.IsChecked, Delete4Tick.IsChecked, Permanent4Tick.IsChecked, Log3Tick.IsChecked,
                                                            Log4Tick.IsChecked, Log1Tick.IsChecked, Log2Tick.IsChecked, UserManageRightTick.IsChecked, Permanent2Tick.IsChecked, Write3Tick.IsChecked);
            int positionId = Int32.Parse(((ComboBoxItem)(PositionTxt.SelectedItem)).Tag.ToString());
            int organId    = Int32.Parse(((ComboBoxItem)(OrgTxt.SelectedItem)).Tag.ToString());
            var res        = DataManagement.CreateUser(UserNameTxt.Text, passwordBox1.Password, UserImage, FNameTxt.Text, LNameTxt.Text,
                                                       SocialTxt.Text, TelTxt.Text, StatusTxt.Text, positionId, organId, accessId, techCommittee.IsChecked, consultCommittee.IsChecked, TenderingComite.IsChecked, ContractManage.IsChecked, PaymentManageCheck.IsChecked, ManagingContractAccessTick.IsChecked);

            if (!res)
            {
                return;
            }
            MessageBox.Show("ثبت با موفقیت انجام شد لطفا به صفحه قبل برگردید");
            SaveBtn.IsEnabled = false;
        }