protected void OnErrorOccurs(DeamonErrorEventArgs e)
 {
     if (errorOccurs != null)
     {
         errorOccurs(this, e);
     }
 }
示例#2
0
        void ErrorOccurs(object sender, DeamonErrorEventArgs e)
        {
            if (!e.errMessage.Contains("ANON is probably already running"))
            {
                api.stopWallet();

                if (e.errMessage.Contains("-reindex"))
                {
                    MessageBox.Show("Your data need reindex", "Error!!!");
                    shouldRestart = true;
                    File.WriteAllText(Types.startCommandsFile, "-reindex");
                }
                MessageBox.Show(e.errMessage, "Error!!!");
                this.Invoke(new Action(() => this.Close()));
            }
        }