Пример #1
0
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            if (BackupSetTree.SelectedItem is BackupSetPolicy)
            {
                BackupSetPolicy SelectedItem = (BackupSetPolicy)BackupSetTree.SelectedItem;
                SelectedBackupSetPolicyID = SelectedItem.PolicyBackupID;
            }

            ReturnValue = RETURN_OK;
            this.Close();
        }
Пример #2
0
        public bool FilterListView(Object item)
        {
            BackupSetPolicy policy = (BackupSetPolicy)item;

            return(FilterText.Text.Length < 1 || (policy.PolicyName.ToUpper().Contains(FilterText.Text.ToUpper())));
        }