private void DemoItem_Click(object sender, EventArgs e) { if (IsShow == true) { return; } IsShow = true; WinDemo winDemo = new WinDemo(SmartChainDataSet); winDemo.ShowDialog(); IsShow = false; }
protected void GetDefaultAccountByUrl(string url, out WinDemo.BaseConst.Realm rlm, out string userName, out string pwd, out string consumerKey, out string consumerSecret) { rlm = BaseConst.Realm.People; userName = BaseConst.PortalUserName; consumerKey = BaseConst.ConsumerKey1stParty; consumerSecret = BaseConst.ConsumerSecret1stParty; pwd = BaseConst.PortalUserPassword; if (url.Contains(WinDemo.BaseConst.Realm.People.ToString())) { userName = BaseConst.PortalUserName; pwd = BaseConst.PortalUserPassword; rlm = BaseConst.Realm.People; } else if (url.Contains(WinDemo.BaseConst.Realm.Groups.ToString())) { //TODO userName rlm = BaseConst.Realm.Groups; } else if (url.Contains(WinDemo.BaseConst.Realm.Giving.ToString())) { //TODO userName rlm = WinDemo.BaseConst.Realm.Giving; } else if (url.Contains(WinDemo.BaseConst.Realm.Events.ToString())) { // rlm = BaseConst.Realm.Events; } }