예제 #1
0
 protected void SendWarning(string format, params object[] args)
 {
     if (Warning != null)
     {
         ClientsConverterEventArgs cea = new ClientsConverterEventArgs();
         cea.Message = string.Format(CultureInfo.CurrentUICulture, format, args);
         Warning(this, cea);
         if (cea.Cancel)
         {
             throw new ClientsConverterException("Conversion has been canceled by user.");
         }
     }
 }
예제 #2
0
파일: IbnConverter.cs 프로젝트: 0anion0/IBN
		void OnClientsConverterWarning(object sender, ClientsConverterEventArgs e)
		{
			if (e != null)
			{
				SendWarning(e.Message);
			}
		}