public void RunRejectionDelegate() { if (rejectionDelegate != null) { rejectionDelegate(); confirmationDelegate = null; rejectionDelegate = null; } isWaiting = false; }
public MainForm() : base() { InitializeComponent(); Alert = new AlertDelegate(AlertMethod); Exit = new ExitDelegate(ExitMethod); FatalExit = new FatalExitDelegate(FatalExitMethod); Log = new LogDelegate(LogMethod); ReportProgress = new ReportProgressDelegate(ReportProgressMethod); Info = new InfoDelegate(InfoMethod); logfile = File.OpenWrite(Path.GetDirectoryName(Application.ExecutablePath) + "\\cuetoogg.log.txt"); }
public SilentForm() : base() { InitializeComponent(); Alert = new AlertDelegate(AlertMethod); Exit = new ExitDelegate(ExitMethod); FatalExit = new FatalExitDelegate(FatalExitMethod); Log = new LogDelegate(LogMethod); ReportProgress = new ReportProgressDelegate(ReportProgressMethod); Info = new InfoDelegate(InfoMethod); logfile=File.OpenWrite(Path.GetDirectoryName(Application.ExecutablePath)+"\\cuetoogg.log.txt"); }
public void Update() { if (!isWaiting) { if (messageQueue.Count > 0) { panel.localPosition = Vector3.zero; Message m = messageQueue.Dequeue(); infoText.text = m.text; panel.gameObject.SetActive(true); confirmationDelegate = m.cDelegate; rejectionDelegate = m.rDelegate; isWaiting = true; } } }
internal static void Bind() { _createDelegate = Library.GetProcAddress <CreateDelegate>("mdbx_env_create") as CreateDelegate; _closeDelegate = Library.GetProcAddress <CloseDelegate>("mdbx_env_close") as CloseDelegate; _closeExDelegate = Library.GetProcAddress <CloseExDelegate>("mdbx_env_close_ex") as CloseExDelegate; _openDelegate = Library.GetProcAddress <OpenDelegate>("mdbx_env_open") as OpenDelegate; _statDelegate = Library.GetProcAddress <StatDelegate>("mdbx_env_stat") as StatDelegate; _infoDelegate = Library.GetProcAddress <InfoDelegate>("mdbx_env_info") as InfoDelegate; _syncDelegate = Library.GetProcAddress <SyncDelegate>("mdbx_env_sync") as SyncDelegate; _setMaxDbsDelegate = Library.GetProcAddress <SetMaxDbsDelegate>("mdbx_env_set_maxdbs") as SetMaxDbsDelegate; _setFlagsDelegate = Library.GetProcAddress <SetFlagsDelegate>("mdbx_env_set_flags") as SetFlagsDelegate; _getFlagsDelegate = Library.GetProcAddress <GetFlagsDelegate>("mdbx_env_get_flags") as GetFlagsDelegate; _setMapSizeDelegate = Library.GetProcAddress <SetMapSizeDelegate>("mdbx_env_set_mapsize") as SetMapSizeDelegate; _setMaxReadersDelegate = Library.GetProcAddress <SetMaxReadersDelegate>("mdbx_env_set_maxreaders") as SetMaxReadersDelegate; _getMaxReadersDelegate = Library.GetProcAddress <GetMaxReadersDelegate>("mdbx_env_get_maxreaders") as GetMaxReadersDelegate; _getMaxKeySizeDelegate = Library.GetProcAddress <GetMaxKeySizeDelegate>("mdbx_env_get_maxkeysize") as GetMaxKeySizeDelegate; }
public void pushMessage(string s, InfoDelegate cD, InfoDelegate rD) { messageQueue.Enqueue(new Message(s, cD, rD)); }
public Message(string s, InfoDelegate cD, InfoDelegate rD) { text = s; cDelegate = cD; rDelegate = rD; }