Example #1
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            LanguagesForm = new LanguagesForm();
            LanguagesForm.ShowDialog();

            GotoForm           = new GotoForm();
            SearchReplaceForm  = new SearchReplaceForm();
            MainForm           = new MainForm();
            StartupForm        = new StartupForm();
            ProjExplorerDock   = new ProjExplorerDock();
            ObjectExplorerDock = new ObjectExplorerDock();
            ErrorsDock         = new ErrorsDock();
            SettingsForm       = new SettingsForm();


            if (args.Length == 1)
            {
                StartupForm.ProjectToOpen = args[0];
            }
            StartupForm.Show();
            Application.Run();
        }
Example #2
0
 /// <summary>
 /// 打开转到窗口
 /// </summary>
 private void OnGotoEditToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!SelCsvFormInitialized())
     {
         return;
     }
     if (m_GotoForm == null || m_GotoForm.IsDisposed)
     {
         m_GotoForm = new GotoForm();
     }
     if (!m_GotoForm.Visible)
     {
         m_GotoForm.Show();
     }
 }
Example #3
0
        private void goToLocationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GotoForm form = new GotoForm();

            if (tabBar.CurrentTab.ColumnView.LastColumn is DirectoryColumn)
            {
                form.ItemsPath = tabBar.CurrentTab.ColumnView.LastColumn.ItemsPath;
            }
            form.Left = this.Left + this.Width / 2 - form.Width / 2;
            form.Top  = this.Top + this.Height / 4 - form.Height / 4;
            form.Show();

            form.AcceptButtonClicked += (_, evt) => {
                tabBar.CurrentTab.ColumnView.NavigateTo(new DirectoryColumn(form.ItemsPath, this));
                tabBar.CurrentTab.ColumnView.Columns[0].Focus();
                tabBar.CurrentTab.ColumnView.ScrollToLastColumn();
            };
        }
 public GoToLineNumberAction()
 {
     _gotoForm = new GotoForm();
 }