public static void ShowDialogWithText(string path)
        {
            var dialogWindow = new Views.DialogWindow();

            CreateLayout(dialogWindow.MainGrid, path);
            dialogWindow.SizeToContent = SizeToContent.WidthAndHeight;
            dialogWindow.ShowDialog();
        }
Пример #2
0
        public static void ShowDialogWindowWithAttributes(string FullName, string fileName, string extension, bool hidden)
        {
            var dialogWindow = new Views.DialogWindow();

            CreateGridLayout(dialogWindow.MainGrid);
            PopulateGrid(dialogWindow.MainGrid, fileName, extension, hidden, dialogWindow, FullName);
            dialogWindow.SizeToContent = SizeToContent.WidthAndHeight;
            dialogWindow.ShowDialog();
        }
Пример #3
0
 /// <summary>
 /// Command's action to display new dialog to add text
 /// </summary>
 private void ShowAddTextDialog()
 {
     Views.DialogWindow _dialogWindow = new Views.DialogWindow();
     _dialogWindow.ShowDialog();
 }