public SessionBindInfo() { vHost = ""; vSystemID = ""; vPassword = ""; vSystemType = ""; vInterfaceVersion = InterfaceVersion.v34; vAllowReceive = true; vAllowTransmit = true; vAddressTon = TypeOfNumber.International; vAddressNpi = NumberingPlanIndicator.ISDN; }
public SessionBindInfo() { _vHost = ""; _vSystemId = ""; _vPassword = ""; _vSystemType = ""; _vInterfaceVersion = InterfaceVersion.V34; _vAllowReceive = true; _vAllowTransmit = true; _vAddressTon = TypeOfNumber.International; _vAddressNpi = NumberingPlanIndicator.Isdn; }
/// <summary> /// Initializes a new instance of <see cref="SmppConnectionProperties"/> /// </summary> public SmppConnectionProperties() { vSystemID = ""; vPassword = ""; vHost = ""; vAddressTon = TypeOfNumber.International; vAddressNpi = NumberingPlanIndicator.ISDN; vInterfaceVersion = InterfaceVersion.v34; vSystemType = ""; vDefaultServiceType = ""; SmscID = ""; vSyncRoot = new object(); }
/// <summary> /// Initializes a new instance of <see cref="SmppConnectionProperties"/> /// </summary> public SmppConnectionProperties() { _vSystemId = ""; _vPassword = ""; _vHost = ""; _vAddressTon = TypeOfNumber.International; _vAddressNpi = NumberingPlanIndicator.Isdn; _vInterfaceVersion = InterfaceVersion.V34; _vSystemType = ""; _vDefaultServiceType = ""; SmscId = ""; _vSyncRoot = new object(); }
/// <summary> /// Runs custom wizard logic at the beginning of a template wizard run. /// </summary> /// <param name="automationObject"></param> /// <param name="replacementsDictionary"></param> /// <param name="runKind"></param> /// <param name="customParams"></param> public void RunStarted(object automationObject, Dictionary <string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) { TL.LogMessage("RunStarted", $"Started wizard"); myDTE = (DTE2)automationObject; DialogResult dialogResult = DialogResult.Cancel; try { // Display a form to the user. The form collects // input for the custom message. inputForm = new DeviceDriverForm(TL); // Pass our trace logger into the form so all Wizard trace goes into one file dialogResult = inputForm.ShowDialog(); } catch (Exception ex) { TL.LogMessageCrLf("RunStarted", "Form Exception: " + ex.ToString()); MessageBox.Show("Form Exception: " + ex.ToString()); } if (dialogResult != DialogResult.OK) { throw new WizardCancelledException("The wizard has been cancelled"); } try { // Save user inputs. DeviceId = inputForm.DeviceId; DeviceName = inputForm.DeviceName; DeviceClass = inputForm.DeviceClass; DeviceInterface = inputForm.DeviceInterface; InterfaceVersion = inputForm.InterfaceVersion; Namespace = inputForm.Namespace; TL.Enabled = true; TL.LogMessage("DeviceId", DeviceId); TL.LogMessage("DeviceName", DeviceName); TL.LogMessage("DeviceClass", DeviceClass); TL.LogMessage("DeviceInterface", DeviceInterface); TL.LogMessage("InterfaceVersion", InterfaceVersion.ToString()); TL.LogMessage("Namespace", Namespace); inputForm.Dispose(); inputForm = null; // Add custom parameters. replacementsDictionary.Add("$deviceid$", DeviceId); replacementsDictionary.Add("$deviceclass$", DeviceClass); replacementsDictionary.Add("$devicename$", DeviceName); replacementsDictionary.Add("$namespace$", Namespace); replacementsDictionary["$projectname$"] = DeviceId; replacementsDictionary["$safeprojectname$"] = DeviceId; replacementsDictionary.Add("TEMPLATEDEVICENAME", DeviceName); if (DeviceClass == "VideoUsingBaseClass") // Special handling for "VideoWithBaseClass" template because its file name is not the same as the device type "Video" { replacementsDictionary.Add("TEMPLATEDEVICECLASS", "Video"); // This ensures that the class is named Video and not VideoWithBaseClass } else // ALl other templates process normally because the selected device name exatly matches the device type e.g. Telescope, Rotator etc. { replacementsDictionary.Add("TEMPLATEDEVICECLASS", DeviceClass); } replacementsDictionary.Add("ITEMPLATEDEVICEINTERFACE", DeviceInterface); replacementsDictionary.Add("TEMPLATENAMESPACE", Namespace); replacementsDictionary.Add("TEMPLATEINTERFACEVERSION", InterfaceVersion.ToString()); // create and replace guids replacementsDictionary.Add(csTemplateAssemblyGuid, Guid.NewGuid().ToString()); replacementsDictionary.Add(csTemplateInterfaceGuid, Guid.NewGuid().ToString()); replacementsDictionary.Add(csTemplateRateGuid, Guid.NewGuid().ToString()); replacementsDictionary.Add(csTemplateAxisRatesGuid, Guid.NewGuid().ToString()); replacementsDictionary.Add(csTemplateTrackingRatesGuid, Guid.NewGuid().ToString()); } catch (Exception ex) { TL.LogMessageCrLf("RunStarted", "Result Exception: " + ex.ToString()); MessageBox.Show("Form result setup exception: " + ex.ToString()); } }