Exemplo n.º 1
0
        private void frmClassEdit_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (ReflectorHandler.Initializing)
            {
                //SetStatusText("Reflector is initialing, please try again later.");
                e.Cancel = true;
                return;
            }
            if (ReflectorHandler.Unloading)
            {
                //SetStatusText("Reflector is unloading, please try again later.");
                e.Cancel = true;
                return;
            }

            try
            {
                this.treeView1.SuspendLayout();
                this.treeView1.BeginUpdate();
                this.treeView1.DrawMode = TreeViewDrawMode.Normal;

                if (Config.ClassEditorAutoSaveBookmarkEnabled)
                {
                    BookmarkHandler.SaveBookmark();
                }

                ReflectorHandler.Unload();
            }
            catch
            {
#if DEBUG
                throw;
#endif
            }
        }
Exemplo n.º 2
0
 private void cboOptimization_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (ReflectorHandler == null)
     {
         return;
     }
     ReflectorHandler.cboOptimization_SelectedIndexChanged(sender, e);
 }
Exemplo n.º 3
0
 private void btnReload_Click(object sender, EventArgs e)
 {
     using (new SimpleWaitCursor())
     {
         ReflectorHandler.UnloadAssemblies();
         ReflectorHandler.LoadAssemblies();
     }
 }
Exemplo n.º 4
0
 private void tabReflector_Enter(object sender, EventArgs e)
 {
     ReflectorHandler.tabPage_Enter(sender, e);
 }
Exemplo n.º 5
0
 private void btnLoad_Click(object sender, EventArgs e)
 {
     ReflectorHandler.btnLoad_Click(sender, e);
 }