// A static method to set the status and optionally update the reference. // This is useful if you are in a section of code that has a variable // set of status string updates. In that case, don't set the reference. static public void SetStatus(string newStatus, bool setReference) { ms_sStatus = newStatus; if (ms_frmSplash == null) { return; } if (setReference) { ms_frmSplash.SetReferenceInternal(); } }
// Static method called from the initializing application to // give the splash screen reference points. Not needed if // you are using a lot of status strings. public static void SetReferencePoint() { ms_frmSplash?.SetReferenceInternal(); }