public bool Initialize(IIncidentWatcher IncidentWatcher, IWatchList Watches) { mIncidentWatcher = IncidentWatcher; mWatchList = Watches; mOptions = new MFBIncidentSourceOptions(); //Create a new Incident List mIncidentList = new MFBIncidentItemList(this); return true; }
public DialogResult ShowOptions(MFBIncidentSourceOptions SourceOptions) { mOptions = SourceOptions; SetupOptions(); //Disable apply btnApply.Enabled = false; return this.ShowDialog(); }
public MFBWatchNotification(MFBIncidentItem IncidentItem, IWatchList Parent, MFBIncidentSourceOptions Options, MFBIncidentSource ParentSource) { InitializeComponent(); mIncidentItem = IncidentItem; mParent = Parent; mOptions = Options; mParentSource = ParentSource; mfFadeOut = true; UpdateDialog(); //Check if a stream exists for this region if (String.IsNullOrEmpty(mOptions.StreamURL) == false && String.IsNullOrEmpty(mParentSource.GetIncidentWatcher().GetStreamListenerPath()) == false) { //If we have it set to open the stream if (mParentSource.GetIncidentWatcher().GetAutoOpenStreamOnWatch() == true) { OpenStream(); } } }