当前位置: 首页>>代码示例>>C#>>正文


C# ModernDialog.Close方法代码示例

本文整理汇总了C#中FirstFloor.ModernUI.Windows.Controls.ModernDialog.Close方法的典型用法代码示例。如果您正苦于以下问题:C# ModernDialog.Close方法的具体用法?C# ModernDialog.Close怎么用?C# ModernDialog.Close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FirstFloor.ModernUI.Windows.Controls.ModernDialog的用法示例。


在下文中一共展示了ModernDialog.Close方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: rdo_UsingPhotoId_ScrapeCommentmessage_Checked

 private void rdo_UsingPhotoId_ScrapeCommentmessage_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         UserControlScrapeCommentMessagebyPhotoId obj_UserControlScrapeCommentMessagebyPhotoId = new UserControlScrapeCommentMessagebyPhotoId();
         var window = new ModernDialog
         {
             Content = obj_UserControlScrapeCommentMessagebyPhotoId
         };
         window.MinHeight = 300;
         window.MinWidth = 700;
         // window.Topmost = true;
         Button customButton = new Button() { Content = "Save" };
         Button customButton1 = new Button() { Content = "Close" };
         customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); };
         customButton.Click += (sa, pa) => { SaveAllData(ref obj_UserControlScrapeCommentMessagebyPhotoId); window.Close(); };
         window.Buttons = new Button[] { customButton, customButton1 };
         window.ShowDialog();
         string s1 = string.Empty;
     }
     catch(Exception ex)
     {
         GlobusLogHelper.log.Error("Error:" + ex.StackTrace);
     }
 }
开发者ID:sumitglobussoft,项目名称:GramDominator-2.0,代码行数:25,代码来源:UserControlScrapeCommentmessage.xaml.cs

示例2: rdoBtn_HashTagsComment_SingleUser_Checked

        private void rdoBtn_HashTagsComment_SingleUser_Checked(object sender, RoutedEventArgs e)
        {
            try
            {
                ClGlobul.HashComment.Clear();
                ClGlobul.HashCommentMessage.Clear();
            }
            catch { }
            try
            {
                btn_HashTags_Comment_BrowseUsers.Visibility = Visibility.Hidden;
                btn_HashTags_Comment_messagebrwer.Visibility = Visibility.Hidden;
                txt_HashTags_Comment_Message.Visibility = Visibility.Hidden;
                txt_HashTags_Comment_UserName.Visibility = Visibility.Hidden;
                Username_Copy.Visibility = Visibility.Hidden;
                Message.Visibility = Visibility.Hidden;
            }
            catch { };
            try
            {
                txt_HashTags_Comment_Message.IsReadOnly = false;
                txt_HashTags_Comment_UserName.IsReadOnly = false;
               
            }
            catch { };
            try
            {
                UsercontrolSingleUser obj = new UsercontrolSingleUser();
                obj.UserControlHeader.Text = "Enter Hash Key Here ";
                // obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl";
                var window = new ModernDialog
                {

                    Content = obj
                };
                window.ShowInTaskbar = true;
                window.MinWidth = 100;
                window.MinHeight = 300;
                Button customButton = new Button() { Content = "SAVE" };
                Button customButton1 = new Button() { Content = "Close" };
                customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); };
                customButton.Click += (ss, ee) => { SaveAllDataHashkey(ref obj); window.Close(); };
                window.Buttons = new Button[] { customButton, customButton1 };

                window.ShowDialog();


            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
            }
        }
开发者ID:sumitglobussoft,项目名称:GramDominator-2.0,代码行数:53,代码来源:UserControlHashTagsComment.xaml.cs

示例3: rdoBtn_LikeBy_Username_SingleUser_Checked

        private void rdoBtn_LikeBy_Username_SingleUser_Checked(object sender, RoutedEventArgs e)
        {
            try
            {
                ClGlobul.PhotoList.Clear();
            }
            catch { }
            try
            {
                btn_LikePhoto_Username_BrowseUsers.Visibility = Visibility.Hidden;
                txt_LikePhoto_Username_LoadUsersPath.Visibility = Visibility.Hidden;
                Likeby_Username.Visibility = Visibility.Hidden;
            }
            catch { };
            try
            {
                txt_LikePhoto_Username_LoadUsersPath.IsReadOnly = false;

            }
            catch { };
            try
            {
                UsercontrolSingleUser obj = new UsercontrolSingleUser();
                obj.UserControlHeader.Text = "Enter Username Here : ";
               // obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl";
                var window = new ModernDialog
                {

                    Content = obj
                };
                window.ShowInTaskbar = true;
                window.MinWidth = 100;
                window.MinHeight = 300;
                Button customButton = new Button() { Content = "SAVE" };
                Button customButton1 = new Button() { Content = "Close" };
                customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); };
                customButton.Click += (ss, ee) => { SaveAllData2(ref obj); window.Close(); };
                window.Buttons = new Button[] { customButton, customButton1 };

                window.ShowDialog();

                
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
            }

        }
开发者ID:sumitglobussoft,项目名称:GramDominator-2.0,代码行数:49,代码来源:UserControlLikePhotoByUserName.xaml.cs

示例4: rdoBtn_commentMessage_SingleId_Checked

        private void rdoBtn_commentMessage_SingleId_Checked(object sender, RoutedEventArgs e)
        {
            try
            {
                ClGlobul.lst_ScrapeCommentMessagePhotoId.Clear();
                txt_PhotoId_Commentmessage.Text = string.Empty;
            }
            catch { }
            try
            {
                btn_PhotoId_Commentmessage.Visibility = Visibility.Hidden;
                txt_PhotoId_Commentmessage.Visibility = Visibility.Hidden;
                Photo_ID.Visibility = Visibility.Hidden;

            }
            catch { };
            try
            {
                txt_PhotoId_Commentmessage.IsReadOnly = false;


            }
            catch { };
            try
            {
                UsercontrolSingleUser obj = new UsercontrolSingleUser();
                obj.UserControlHeader.Text = "Enter Photo ID here to Scrape there Comment Message : ";
                // obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl";
                var window = new ModernDialog
                {

                    Content = obj
                };
                window.ShowInTaskbar = true;
                window.MinWidth = 100;
                window.MinHeight = 300;
                Button customButton = new Button() { Content = "Save" };
                Button customButton1 = new Button() { Content = "Close" };
                customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); };
                customButton.Click += (sa, pa) => { SaveAllData(ref obj); window.Close(); };
                window.Buttons = new Button[] { customButton, customButton1 };
                window.ShowDialog();
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
            }
        }
开发者ID:sumitglobussoft,项目名称:GramDominator-2.0,代码行数:48,代码来源:UserControlScrapeCommentMessagebyPhotoId.xaml.cs

示例5: chk_GroupStatusUpdate_GetGroups_Checked

        private void chk_GroupStatusUpdate_GetGroups_Checked(object sender, RoutedEventArgs e)
        {
            //try
            //{
            //    if (LDGlobals.listAccounts.Count > 0)
            //    {
            //        var window = new ModernDialog
            //        {
            //            Content = new UserControlGEtGroupsForStatusUpdate()
            //        };
            //        window.MinWidth = 550;
            //        window.MinHeight = 350;
            //        window.Title = "Upload Follow Details";                    
            //        window.ShowDialog();
            //    }
            //    else
            //    {
            //        MessageBox.Show("Please upload accounts.");
            //        return;
            //    }
            //}
            //catch (Exception ex)
            //{
            //    //  GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
            //}

            try
            {
                UserControlGEtGroupsForStatusUpdate obj = new UserControlGEtGroupsForStatusUpdate();
                
              
                var window = new ModernDialog
                {

                    Content = obj
                };
                window.ShowInTaskbar = true;
                Button customButton = new Button() { Content = "Save" };
                customButton.Click += (ss, ee) => { closeEvent(); window.Close(); };
                window.Buttons = new Button[] { customButton };

                window.ShowDialog();


            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error("Error : 55" + ex.Message);
            }



        }
开发者ID:sumitglobussoft,项目名称:LinkedDominator-3.0,代码行数:53,代码来源:UserControlsGroupStatusUpdate.xaml.cs

示例6: ShowMessage

        public static string ShowMessage(string text, string title, Window owner, params ButtonDef[] buttons)
        {
            string result = null;

            var dialog = new ModernDialog {
                Title = title,
                Content = new BBCodeBlock {BBCode = text, Margin = new Thickness(0, 0, 0, 8)},
                MinHeight = 0,
                MinWidth = 0,
                MaxHeight = 480,
                MaxWidth = 640,
                Owner = owner
            };

            dialog.Buttons = buttons.Select(def => CreateButton(def, () => {
                result = def.Name;
                dialog.Close();
            }));

            dialog.ShowDialog();

            return result;
        }
开发者ID:SmartFire,项目名称:LogWatch,代码行数:23,代码来源:CustomModernDialog.cs

示例7: AddUserAgent_UploadAcc

 private void AddUserAgent_UploadAcc(object sender, RoutedEventArgs e)
 {
     try
     {
         this.Dispatcher.Invoke((Action)delegate
         {
             var modernDialog = new ModernDialog
             {
                 Content = new AddNewUserAgen_UploadAccount()
             };
             modernDialog.MinWidth = 500;
             modernDialog.MinHeight = 300;
             //modernDialog.Topmost = true;
             Button customButton = new Button() { Content = "SUBMIT" };
             customButton.Click += (ss, ee) => { closeEvent(); modernDialog.Close(); };
             modernDialog.Buttons = new Button[] { customButton };
             modernDialog.ShowDialog();
         });
         AccounLoad();
     }
     catch (Exception ex)
     {
         GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
     }
 }
开发者ID:sumitglobussoft,项目名称:pinDominator-3.0,代码行数:25,代码来源:UploadAccount.xaml.cs

示例8: Rdo_Using_HashTag_Checked

        private void Rdo_Using_HashTag_Checked(object sender, RoutedEventArgs e)
        {
            txtblock_Activity_photoDownload.Text = "Using Hashkey Report :";
            Username_Hashkey_Uploaded.Content = "No. Of Hashkey Uploaded :";
            UserControlPhotoDownload_Hashtag obj_UserControlPhotoDownload_Hashtag = new UserControlPhotoDownload_Hashtag();
            var window = new ModernDialog
            {

                Content = obj_UserControlPhotoDownload_Hashtag
            };
            window.ShowInTaskbar = true;
            window.MinHeight = 300;
            window.MinWidth = 700;
            Button customButton = new Button() { Content = "SAVE" };
            Button customButton1 = new Button() { Content = "Close" };
            customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); };
            customButton.Click += (ss, ee) => { SaveAllData1(ref obj_UserControlPhotoDownload_Hashtag); window.Close(); };
            window.Buttons = new Button[] { customButton, customButton1 };

            window.ShowDialog();

            string s1 = string.Empty;
           
        }
开发者ID:sumitglobussoft,项目名称:GramDominator-2.0,代码行数:24,代码来源:UserControlDownloadPhoto.xaml.cs

示例9: chkBox_ScrapeUsers_DailyScheduleTask_Checked

        private void chkBox_ScrapeUsers_DailyScheduleTask_Checked(object sender, RoutedEventArgs e)
        {
            try
            {
                GlobalDeclration.objMentionUser.IsDailySchedule = true;
                var dialog = new ModernDialog
                {
                    Content = new UserControlScheduleMentionUsers()
                };
                dialog.MinHeight = 300;
                dialog.MinWidth = 750;

                var customButton = new Button() { Content = "Close" };
                customButton.Click += (ee, vv) => { dialog.Close(); };
                dialog.Buttons = new Button[] { customButton };
                dialog.ShowDialog();

            }
            catch (Exception ex)
            {

            }
        }
开发者ID:sumitglobussoft,项目名称:instagram-dominator-2.0,代码行数:23,代码来源:UserControlScrapeUsers.xaml.cs

示例10: chkBox_Like_DivideData_Checked

 private void chkBox_Like_DivideData_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         LikeManagers.chkBox_Like_DivideData = true;
         UserControl_Like_DivideData objUserControl_Like_DivideData = new UserControl_Like_DivideData();
             var modernDialog = new ModernDialog
             {
                 Content = objUserControl_Like_DivideData
             };
             modernDialog.MinWidth = 600;
             modernDialog.MinHeight = 300;
             Button customButton = new Button() { Content = "SAVE" };
             customButton.Click += (ss, ee) => { closeEvent(); modernDialog.Close(); };
             modernDialog.Buttons = new Button[] { customButton };
             modernDialog.ShowDialog();
             string s1 = string.Empty;
             try
             {
                 if (LikeManagers.rdbDivideEqually == true || LikeManagers.rdbDivideByUser == true)
                 {
                     if (LikeManagers.rdbDivideByUser == true)
                     {
                         if (!string.IsNullOrEmpty(objUserControl_Like_DivideData.txtGiveByUser_Like.Text))
                         {
                             LikeManagers.CountGivenByUser = Convert.ToInt32(objUserControl_Like_DivideData.txtGiveByUser_Like.Text);
                         }
                         else
                         {
                             GlobusLogHelper.log.Info("Please Give Count Given By User");
                             ModernDialog.ShowMessage("Please Give Count Given By User", "Count Given By User", MessageBoxButton.OK);
                             return;
                         }
                     }
                     ModernDialog.ShowMessage("Notice", "Data Successfully Save", MessageBoxButton.OK);
                     GlobusLogHelper.log.Info("=> [ Your Data Successfully Save ]");
                 }
                 else
                 {
                     GlobusLogHelper.log.Info("=> [ Please Select Divide Equally Or Divide Given By User First ]");
                     ModernDialog.ShowMessage("Please Select Divide Equally Or Divide Given By User First", "Select First", MessageBoxButton.OK);
                 }
             }
             catch (Exception ex)
             {
                 GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
             }        
     }
     catch (Exception ex)
     {
         GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
     }
 }
开发者ID:sumitglobussoft,项目名称:pinDominator-3.0,代码行数:53,代码来源:Like.xaml.cs

示例11: rdo_SingleUser_Unfollower

        private void rdo_SingleUser_Unfollower(object sender, RoutedEventArgs e)
        {
            txt_UnfollowerUser.Clear();
            ClGlobul.lstUnfollowerList.Clear();
            try
            {
                ClGlobul.lstUnfollowerList.Clear();
            }
            catch { }
            try
            {
                Unfollower_browser.Visibility = Visibility.Hidden;
                txt_UnfollowerUser.Visibility = Visibility.Hidden;
                lbe_Userunfollow.Visibility = Visibility.Hidden;

            }
            catch { };
            try
            {
                txt_UnfollowerUser.IsReadOnly = false;
            }
            catch { };
            try
            {
                UsercontrolSingleUser obj = new UsercontrolSingleUser();
                obj.UserControlHeader.Text = "Enter Unsername To Unfollow Here ";
                //obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl";
                var window = new ModernDialog
                {

                    Content = obj
                };
                window.ShowInTaskbar = true;
                window.MinWidth = 100;
                window.MinHeight = 300;
                Button customButton = new Button() { Content = "SAVE" };
                Button customButton1 = new Button() { Content = "Close" };
                customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); };
                customButton.Click += (ss, ee) => { SaveAllData(ref obj); window.Close(); };
                window.Buttons = new Button[] { customButton, customButton1 };
                window.ShowDialog();               
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
            }
        }
开发者ID:sumitglobussoft,项目名称:GramDominator-2.0,代码行数:47,代码来源:UserControlUnfollower.xaml.cs

示例12: rdo_DownloadSingle_ByHashtag_Checked

        private void rdo_DownloadSingle_ByHashtag_Checked(object sender, RoutedEventArgs e)
        {
            try
            {
                btu_Downloadphoto_loadByuserhash.Visibility = Visibility.Hidden;
                txt_downloadphoto_Hashtag.Visibility = Visibility.Hidden;
                lbe_hashtag_user.Visibility = Visibility.Hidden;
            }
            catch { };
            try
            {
                txt_downloadphoto_Hashtag.IsReadOnly = false;
            }
            catch { };
            try
            {
                UsercontrolSingleUser obj = new UsercontrolSingleUser();
                obj.UserControlHeader.Text = "Enter Hashtag User Here ";
                //obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl";
                var window = new ModernDialog
                {

                    Content = obj
                };
                window.ShowInTaskbar = true;
                window.MinWidth = 100;
                window.MinHeight = 300;
                Button customButton = new Button() { Content = "SAVE" };
                Button customButton1 = new Button() { Content = "Close" };
                customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); };
                customButton.Click += (ss, ee) => { SaveAllData(ref obj); window.Close(); };
                window.Buttons = new Button[] { customButton, customButton1 };
                window.ShowDialog();                
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
            }

        }
开发者ID:sumitglobussoft,项目名称:GramDominator-2.0,代码行数:40,代码来源:UserControlPhotoDownload_Hashtag.xaml.cs

示例13: rdo_CommentInput_SingleUser_Checked

        private void rdo_CommentInput_SingleUser_Checked(object sender, RoutedEventArgs e)
        {
            try
            {
                ClGlobul.commentMsgList.Clear();
                ClGlobul.CommentIdsForMSG.Clear();
                txtMessage_Comment_LoadMessages.Clear();
                txtMessage_Comment_PhotoID.Clear();               
            }
            catch { }
            try
            {
                btnMessage_Comment_LoadMessages.Visibility = Visibility.Hidden;
                btnMessage_Comment_LoadPhotoID.Visibility = Visibility.Hidden;
                txtMessage_Comment_PhotoID.Visibility = Visibility.Hidden;
                txtMessage_Comment_LoadMessages.Visibility = Visibility.Hidden;
                lbe_PhotoId.Visibility = Visibility.Hidden;
                lbe_message.Visibility = Visibility.Hidden;

            }
            catch { };
            try
            {
                txtMessage_Comment_LoadMessages.IsReadOnly = false;
                txtMessage_Comment_PhotoID.IsReadOnly = false;
            }
            catch { };
            try
            {
                UsercontrolSingleUser obj = new UsercontrolSingleUser();
                obj.UserControlHeader.Text = "Enter Image ID/Url Here ";
               // obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl";
                var window = new ModernDialog
                {

                    Content = obj
                };
                window.ShowInTaskbar = true;
                window.MinWidth = 100;
                window.MinHeight = 300;
                Button customButton = new Button() { Content = "SAVE" };
                Button customButton1 = new Button() { Content = "Close" };
                customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); };
                customButton.Click += (ss, ee) => { SaveAllPhotoIdData(ref obj); window.Close(); };
                window.Buttons = new Button[] { customButton, customButton1 };
                window.ShowDialog();              
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
            }

        }
开发者ID:sumitglobussoft,项目名称:GramDominator-2.0,代码行数:53,代码来源:UserControlCommentPhoto.xaml.cs

示例14: rdo_UnlikeBy_Id_Checked

 private void rdo_UnlikeBy_Id_Checked(object sender, RoutedEventArgs e)
 {
     txt_block_Selected_likeoption.Text = "Photo Unlike By ID Report";
     Number_of_ID_Username_loaded.Content = "No. Of Photo ID Loaded :";
     UserControlUnlikePhotoByPhotoId obj_UserControlUnlikePhotoByPhotoId = new UserControlUnlikePhotoByPhotoId();
     var window = new ModernDialog
     {
         Content = obj_UserControlUnlikePhotoByPhotoId
     };
     window.MinHeight = 300;
     window.MinWidth = 700;
     //  window.Topmost = true;
     Button customButton = new Button() { Content = "SAVE" };
     Button customButton1 = new Button() { Content = "Close" };
     customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); };
     customButton.Click += (ss, ee) => { SaveAllData(ref obj_UserControlUnlikePhotoByPhotoId); window.Close(); };
     window.Buttons = new Button[] { customButton, customButton1 };
     window.ShowDialog();
     string s1 = string.Empty;          
 }
开发者ID:sumitglobussoft,项目名称:GramDominator-2.0,代码行数:20,代码来源:UserControlUnlikePhoto.xaml.cs

示例15: rdo_SingleUser_Follow_like

        private void rdo_SingleUser_Follow_like(object sender, RoutedEventArgs e)
        {
            Txt_Photo_ID.Text = string.Empty;
            ClGlobul.lstphotoId_Followwithlike.Clear();
            try
            {
                Btu_Follow_With_like_browser.Visibility = Visibility.Hidden;
                Txt_Photo_ID.Visibility = Visibility.Hidden;
                lblLoadPhotoId.Visibility = Visibility.Hidden;
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
            }
            try
            {
                UsercontrolSingleUser obj = new UsercontrolSingleUser();
                obj.UserControlHeader.Text = "Enter Photo Id/Url Here ";
                //obj.txtEnterSingleMessages.ToolTip = "Format :- Niche::BoardName::BoardUrl";
                var window = new ModernDialog
                {

                    Content = obj
                };
                window.ShowInTaskbar = true;
                window.MinWidth = 100;
                window.MinHeight = 300;
                Button customButton = new Button() { Content = "SAVE" };
                Button customButton1 = new Button() { Content = "Close" };
                customButton1.Click += (ss, ee) => { closeEvent(); window.Close(); };
                customButton.Click += (ss, ee) => { SaveAllData(ref obj); window.Close(); };
                window.Buttons = new Button[] { customButton, customButton1 };

                window.ShowDialog();
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
            }
        }
开发者ID:sumitglobussoft,项目名称:GramDominator-2.0,代码行数:40,代码来源:Follow_with_Like.xaml.cs


注:本文中的FirstFloor.ModernUI.Windows.Controls.ModernDialog.Close方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。