public frmPanda(PandaService pandaService, LogLevel level) { //Constructor try { //Designer required InitializeComponent(); //Create online icons Stream online = Assembly.GetExecutingAssembly().GetManifestResourceStream("Tsort.PandA.online.ico"); Stream offline = Assembly.GetExecutingAssembly().GetManifestResourceStream("Tsort.PandA.offline.ico"); this.icon_on = new Icon(online); this.icon_off = new Icon(offline); //Init user services this.pandaUI1.PandaSvc = pandaService; this.pandaUI1.TraceOn = level; this.sortUI1.Operator = pandaService.SortOperator; this.sortUI1.Operator.DataStatusUpdate += new DataStatusHandler(OnDataStatusUpdate); } catch (Exception ex) { throw new ApplicationException("Unexpected error while creating new frmPanda instance.", ex); } }
//Events //Interface public frmPanda(PandaService pandaService) : this(pandaService, LogLevel.Error) { }