コード例 #1
0
        private async void gridViewApplications_DoubleClick_1(object sender, EventArgs e)
        {
            try
            {
                var application = gridViewApplications.GetRow(gridViewApplications.FocusedRowHandle) as SettingsApplication;

                if (application != null)
                {
                    gridControl1.Visible = false;

                    applicationControl = new ApplicationUserControl(application.Name);

                    applicationControl.ShowProgress += (a, b) => ShowProgress();
                    applicationControl.HideProgress += (a, b) => HideProgress();
                    applicationControl.Path          = barStaticItemPath;

                    await applicationControl.Init();

                    applicationControl.Dock = DockStyle.Fill;
                    mainPanel.Controls.Add(applicationControl);
                    barButtonBack.Visibility = BarItemVisibility.Always;

                    ribbonPageGroupApplicationActions.Visible = true;
                    barButtonBack.Visibility     = BarItemVisibility.Always;
                    barButtonItemCopy.Visibility = BarItemVisibility.Always;
                }
            }
            catch (SettingsException ex)
            {
                MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
コード例 #2
0
 private void ShowStartScreen()
 {
     gridControl1.Visible = true;
     applicationControl   = null;
     ribbonPageGroupApplicationActions.Visible = false;
     barButtonBack.Visibility     = BarItemVisibility.Never;
     barStaticItemPath.Caption    = string.Format("Path: {0}", ConfigurationManager.Current.Url);
     barButtonItemCopy.Visibility = BarItemVisibility.Never;
 }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: meviuswg/SettingsAPI
 private void ShowStartScreen()
 {
     gridControl1.Visible = true;
     applicationControl = null;
     ribbonPageGroupApplicationActions.Visible = false;
     barButtonBack.Visibility = BarItemVisibility.Never;
     barStaticItemPath.Caption = string.Format("Path: {0}", ConfigurationManager.Current.Url);
     barButtonItemCopy.Visibility = BarItemVisibility.Never;
 }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: meviuswg/SettingsAPI
        private async void gridViewApplications_DoubleClick_1(object sender, EventArgs e)
        {
            try
            {
                var application = gridViewApplications.GetRow(gridViewApplications.FocusedRowHandle) as SettingsApplication;

                if (application != null)
                {
                    gridControl1.Visible = false;

                    applicationControl = new ApplicationUserControl(application.Name);

                    applicationControl.ShowProgress += (a, b) => ShowProgress();
                    applicationControl.HideProgress += (a, b) => HideProgress();
                    applicationControl.Path = barStaticItemPath;

                    await applicationControl.Init();

                    applicationControl.Dock = DockStyle.Fill;
                    mainPanel.Controls.Add(applicationControl);
                    barButtonBack.Visibility = BarItemVisibility.Always;

                    ribbonPageGroupApplicationActions.Visible = true;
                    barButtonBack.Visibility = BarItemVisibility.Always;
                    barButtonItemCopy.Visibility = BarItemVisibility.Always;
                }
            }
            catch (SettingsException ex)
            {
                MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }