Beispiel #1
0
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Version version = typeof(string).Assembly.GetName().Version;

            newMainForm = new NewMainForm();
            WSSWebRequestCreate.RegisterPrefixes();
            newMainForm.ShowDialog();
        }
Beispiel #2
0
        /// <summary>
        /// Create MainFrom
        /// </summary>
        /// <param name="asmPath">MainFrom's asmPath</param>
        /// <returns></returns>
        public static MainForm CreateMainForm(string asmPath)
        {
            MainForm mainForm = new MainForm();

            MainForm.mainForm = mainForm;
            WSSWebRequestCreate.RegisterPrefixes();
            mainForm.SetupAssemblyResolver();
            mainForm.OutCall = true;
            mainForm.chkLocalAssembly.Checked = true;
            lock (locker)
            {
                mainForm.tabMain.SelectTab("tabPageInvoke");
                mainForm.textEndPointUri.Text = asmPath;
                mainForm.buttonGet_Click(mainForm.buttonGet, null);
                return(mainForm);
            }
        }