Пример #1
0
        public void InstructionsWindowTest2()
        {
            MainWindow         mainwindow = new MainWindow();
            InstructionsWindow window     = new InstructionsWindow(mainwindow, EnumInstructionMode.ADD_NEW);

            Assert.IsInstanceOfType(window, typeof(InstructionsWindow));
        }
Пример #2
0
        public void InstructionsWindowTest1()
        {
            MainWindow         mainwindow = new MainWindow();
            InstructionsWindow window     = new InstructionsWindow(mainwindow);

            Assert.IsInstanceOfType(window, typeof(InstructionsWindow));
        }
Пример #3
0
 protected void ShowInstructionsWindow(IDialogVisualizerService windowService, System.IO.Stream data)
 {
     using (data) {
         var reader = CreateReader(data);
         using (var form = new InstructionsWindow(reader)
         {
             Text = reader.Name
         })
             windowService.ShowDialog(form);
     }
 }
Пример #4
0
        public void Show()
        {
            var m      = typeof(InstructionsWindowTests).GetMethod("Show");
            var cfg    = Configuration.Resolve(m);
            var source = cfg.GetReader(m) as Dump.ISupportDump;

            using (var ms = new System.IO.MemoryStream()) {
                source.Dump(ms);
                ms.Seek(0, System.IO.SeekOrigin.Begin);
                cfg = Configuration.Resolve(ms);
                var reader = cfg.GetReader(ms);
                using (var window = new InstructionsWindow(reader)) {
                    window.Text = reader.Name;
                    window.ShowDialog();
                }
            }
        }
Пример #5
0
        public void InstructionsWindowTest()
        {
            InstructionsWindow window = new InstructionsWindow();

            Assert.IsInstanceOfType(window, typeof(InstructionsWindow));
        }
 public LabelNameInputWindow(InstructionsWindow parent)
 {
     this.parent = parent;
     InitializeComponent();
 }
 public LabelNameInputWindow()
 {
     parent = null;
     InitializeComponent();
 }