Exemplo n.º 1
0
        private void EditAccess(object sender, RoutedEventArgs e)
        {
            var accessAssignWnd = new AccessEditWindow();

            foreach (Window window in System.Windows.Application.Current.Windows)
            {
                if (window is AccessEditWindow)
                {
                    accessAssignWnd.Owner = window;
                }
            }
            accessAssignWnd.WorkWith = AccessEditWindow.WorkWithVariants.Region;

            accessAssignWnd.ShowDialog();
        }
Exemplo n.º 2
0
        private void BookAccessChange(object sender, RoutedEventArgs e)
        {
            var accessEditWnd = new AccessEditWindow()
            {
                AccessString = (string)((Button)sender).Content,
                WorkWith     = AccessEditWindow.WorkWithVariants.Book
            };

            foreach (Window window in System.Windows.Application.Current.Windows)
            {
                if (window is RecordWindow)
                {
                    accessEditWnd.Owner = window;
                }
            }

            accessEditWnd.ShowDialog();
            ((Button)sender).Content = accessEditWnd.AccessString;
        }