Beispiel #1
0
        public EnterTextWindow(EnterTextWindow sourceObject)
        {
            InitializeComponent();

            RegisterDescripter();

            SettingTitle = sourceObject.SettingTitle;

            Settings = sourceObject.Settings;

            if (sourceObject.TextBoxTexts != null)
            {
                TextBoxTexts = sourceObject.TextBoxTexts;
            }

            SetPosition();
        }
Beispiel #2
0
        private string ShowManualPortSettingsWindowForSerialPort()
        {
            string[] enterSettings = new string[0];

            EnterTextWindow manualSettingWindow = new EnterTextWindow(FindResource("ManualPortSettingsForSerialPortWindow") as EnterTextWindow);

            manualSettingWindow.TextBoxTexts = new string[] { "9600,n,8,1,h" };

            bool?result = manualSettingWindow.ShowDialog();

            if (result == true)
            {
                enterSettings = manualSettingWindow.TextBoxTexts;
            }
            else
            {
                return(null);
            }

            return(enterSettings[0]);
        }
Beispiel #3
0
        private string[] ShowManualSettingWindow()
        {
            string[] enterSettings = new string[0];

            EnterTextWindow manualSettingWindow = new EnterTextWindow(FindResource("ManualSettingWindow") as EnterTextWindow);

            manualSettingWindow.TextBoxTexts = SharedInformationManager.SelectedModelManager.GetSelectedPortNameAndPortSettings(PrinterPriority);

            bool?result = manualSettingWindow.ShowDialog();

            if (result == true)
            {
                enterSettings = manualSettingWindow.TextBoxTexts;
            }
            else
            {
                return(null);
            }

            return(enterSettings);
        }