本文整理汇总了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);
}
}
示例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;
}