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


C# Status.Show方法代码示例

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


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

示例1: UploadVideo

        public static void UploadVideo()
        {
            try
            {
            //                string developerKey = "AI39si72llWnlwlqjLA1XPfT1uz-ryd6n8Yb9KgjoHsjHda3tn5fANjJ1Ys73SFRUp0aV7oxdJESkICc1jveiBb4tD-zvKZnfw";
                String developerKey = "AIzaSyAWcrKx4meD6r3-SixVEMaMf_PCvUwA-rE";
                string username = "[email protected]";
                string password = "m123456&";
                YouTubeRequestSettings settings = new YouTubeRequestSettings("API Project", developerKey, username, password);
                YouTubeRequest request = new YouTubeRequest(settings);

                Video newVideo = new Video();

                newVideo.Title = _header;
                newVideo.Tags.Add(new MediaCategory("Autos", YouTubeNameTable.CategorySchema));
                newVideo.Keywords = _keywords;
                newVideo.Description = _description;
                newVideo.YouTubeEntry.Private = false;

                newVideo.Tags.Add(new MediaCategory("mydevtag, anotherdevtag", YouTubeNameTable.DeveloperTagSchema));

                //newVideo.YouTubeEntry.Location = new GeoRssWhere(37, -122);
                // alternatively, you could just specify a descriptive string
                // newVideo.YouTubeEntry.setYouTubeExtension("location", "Mountain View, CA");

                newVideo.YouTubeEntry.MediaSource = new MediaFileSource(@"C:\Users\nufar\Desktop\Final Project DAMN IT\SkeletalTracking\bin\Debug\EntireScreenCaptured.wmv",
                  "video/x-ms-wmv");

                Video createdVideo = request.Upload(newVideo);
                Status pop = new Status(createdVideo);
                pop.Show();
            }

            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
开发者ID:nofarshaked,项目名称:Live_Editing_System,代码行数:38,代码来源:uploadWindow.xaml.cs

示例2: OnRunReferenceItemDialog

    protected void OnRunReferenceItemDialog(object sender, Reference.RunReferenceItemDlgEventArgs e)
    {
        ResponseType Result;
        switch (e.TableName)
        {
            case "models":
                CarModel ItemModel = new CarModel();
                if(e.NewItem)
                    ItemModel.NewItem = true;
                else
                    ItemModel.Fill(e.ItemId);
                ItemModel.Show();
                Result = (ResponseType)ItemModel.Run();
                ItemModel.Destroy();
                break;
            case "status":
                Status StatusEdit = new Status();
                if(e.NewItem)
                    StatusEdit.NewItem = true;
                else
                    StatusEdit.Fill(e.ItemId);
                StatusEdit.Show();
                Result = (ResponseType)StatusEdit.Run();
                StatusEdit.Destroy();
                break;
            case "services":
                Service ServiceEdit = new Service();
                if(e.NewItem)
                    ServiceEdit.NewItem = true;
                else
                    ServiceEdit.Fill(e.ItemId);
                ServiceEdit.Show();
                Result = (ResponseType)ServiceEdit.Run();
                ServiceEdit.Destroy();
                break;
            case "stocks":
                OrderStock StocksEdit = new OrderStock();
                if(e.NewItem)
                    StocksEdit.NewItem = true;
                else
                    StocksEdit.Fill(e.ItemId);
                StocksEdit.Show();
                Result = (ResponseType)StocksEdit.Run();
                StocksEdit.Destroy();
                break;

            default:
                Result = ResponseType.None;
                break;
        }
        e.Result = Result;
    }
开发者ID:QualitySolution,项目名称:CarGlass,代码行数:52,代码来源:MainWindow.cs


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