本文整理汇总了C#中Gtk.CheckButton.ShowAll方法的典型用法代码示例。如果您正苦于以下问题:C# CheckButton.ShowAll方法的具体用法?C# CheckButton.ShowAll怎么用?C# CheckButton.ShowAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.CheckButton
的用法示例。
在下文中一共展示了CheckButton.ShowAll方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UpdateiFolder
public void UpdateiFolder(iFolderWeb ifolder)
{
this.ifolder = ifolder;
if (ifolder.LastSyncTime == null || ifolder.LastSyncTime == "")
LastSuccessfulSync.Text = Util.GS("N/A");
else
LastSuccessfulSync.Text = ifolder.LastSyncTime;
FFSyncValue.Text = "0";
int syncInterval = 0;
if (ifolder.SyncInterval <= 0)
{
try
{
syncInterval = ifws.GetDefaultSyncInterval();
}
catch
{}
}
else
{
syncInterval = ifolder.SyncInterval;
}
if (syncInterval > 0)
{
syncInterval = syncInterval / 60;
}
SyncIntervalValue.Text = syncInterval + " " + Util.GS("minute(s)");
NameLabel.Markup = string.Format("<span weight=\"bold\">{0}</span>", ifolder.Name);
OwnerLabel.Markup = string.Format("<span size=\"small\">{0}</span>", ifolder.Owner);
LocationLabel.Markup = string.Format("<span size=\"small\">{0}</span>", ifolder.UnManagedPath);
try
{
SyncSize ss = ifws.CalculateSyncSize(ifolder.ID);
FFSyncValue.Text = string.Format("{0}", ss.SyncNodeCount);
}
catch(Exception e)
{
FFSyncValue.Text = Util.GS("N/A");
}
try
{
ds = ifws.GetiFolderDiskSpace(ifolder.ID);
}
catch(Exception e)
{
ds = null;
}
if(ifolder.CurrentUserID == ifolder.OwnerID)
{
if(LimitCheckButton == null)
{
LimitCheckButton =
new CheckButton(Util.GS("Set _Quota:"));
LimitCheckButton.Toggled +=
new EventHandler(OnLimitSizeButton);
diskTable.Attach(LimitCheckButton, 0,1,1,2,
AttachOptions.Shrink | AttachOptions.Fill, 0,0,0);
LimitEntry = new Entry();
LimitEntry.Changed +=
new EventHandler(OnLimitChanged);
LimitEntry.Activated +=
new EventHandler(OnLimitEdited);
LimitEntry.FocusOutEvent +=
new FocusOutEventHandler(OnLimitFocusLost);
LimitEntry.WidthChars = 6;
LimitEntry.MaxLength = 10;
LimitEntry.Layout.Alignment = Pango.Alignment.Left;
diskTable.Attach(LimitEntry, 1,2,1,2,
AttachOptions.Shrink | AttachOptions.Fill, 0,0,0);
LimitCheckButton.ShowAll();
LimitEntry.ShowAll();
}
else
{
LimitCheckButton.Visible = true;
LimitEntry.Visible = true;
}
if(LimitLabel != null)
{
LimitLabel.Visible = false;
LimitValue.Visible = false;
}
}
else
{
if(LimitLabel == null)
{
LimitLabel = new Label(Util.GS("Quota:"));
LimitLabel.Xalign = 0;
diskTable.Attach(LimitLabel, 0,1,1,2,
AttachOptions.Expand | AttachOptions.Fill, 0,0,0);
LimitValue = new Label("0");
LimitValue.Xalign = 1;
diskTable.Attach(LimitValue, 1,2,1,2,
AttachOptions.Shrink | AttachOptions.Fill, 0,0,0);
LimitLabel.ShowAll();
LimitValue.ShowAll();
}
else
{
//.........这里部分代码省略.........
示例2: AddTagWidget
private void AddTagWidget(TeamTag tag)
{
CheckButton button = new CheckButton(tag.Value == Team.LOCAL ? localTeam : visitorTeam );
button.Toggled += delegate(object sender, EventArgs e) {
if (button.Active) {
tags.Add(tag);
} else
tags.Remove(tag);
};
dict.Add(tag, button);
buttonsbox.PackStart(button, false, false, 0);
button.ShowAll();
}