public void InstructionsWindowTest2() { MainWindow mainwindow = new MainWindow(); InstructionsWindow window = new InstructionsWindow(mainwindow, EnumInstructionMode.ADD_NEW); Assert.IsInstanceOfType(window, typeof(InstructionsWindow)); }
public void InstructionsWindowTest1() { MainWindow mainwindow = new MainWindow(); InstructionsWindow window = new InstructionsWindow(mainwindow); Assert.IsInstanceOfType(window, typeof(InstructionsWindow)); }
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); } }
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(); } } }
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(); }