Example #1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            bool?nullable = new RoleAddDialog().ShowDialog();
            bool flag     = true;

            if ((nullable.GetValueOrDefault() == flag ? (nullable.HasValue ? 1 : 0) : 0) == 0)
            {
                return;
            }
            this.RefreshData();
        }
Example #2
0
        private void EditRole(RoleModel user)
        {
            bool?nullable = new RoleAddDialog()
            {
                RoleId = user.RoleId
            }.ShowDialog();
            bool flag = true;

            if ((nullable.GetValueOrDefault() == flag ? (nullable.HasValue ? 1 : 0) : 0) == 0)
            {
                return;
            }
            this.RefreshData();
        }