本文整理汇总了C#中DomainInformation类的典型用法代码示例。如果您正苦于以下问题:C# DomainInformation类的具体用法?C# DomainInformation怎么用?C# DomainInformation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DomainInformation类属于命名空间,在下文中一共展示了DomainInformation类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Connecting
public Connecting( iFolderWebService ifws, SimiasWebService simiasWebService, Manager simiasManager, DomainInformation domainInfo, string password, bool rememberPassword )
: this(ifws, simiasWebService, simiasManager, domainInfo, password)
{
this.updatePasswordPreference = true;
this.rememberPassword = rememberPassword;
this.autoAccountEnabled = false;
}
示例2: DefaultiFolderPage
public DefaultiFolderPage(iFolderWebService ifws, SimiasWebService simws, DomainInformation domainInfo )
{
this.resManager = new System.Resources.ResourceManager(typeof(Novell.FormsTrayApp.FormsTrayApp));
InitializeComponent();
this.simws = simws;
this.domainInfo = domainInfo;
this.ifws = ifws;
}
示例3: BonjourAccountDialog
public BonjourAccountDialog(Window parent, DomainInformation curDomain)
: base(parent, curDomain)
{
ifdata = iFolderData.GetData();
this.simiasManager = Util.GetSimiasManager();
domainController = DomainController.GetDomainController();
SetupDialog();
}
示例4: EnterpriseAccountDialog
public EnterpriseAccountDialog(Window parent, DomainInformation curDomain)
: base(parent, curDomain)
{
ifdata = iFolderData.GetData();
domainController = DomainController.GetDomainController();
bServerAddressChanged = false;
bPasswordChanged = false;
SetupDialog();
this.Response +=
new ResponseHandler(OnDialogResponse);
}
示例5: DragCreateDialog
public DragCreateDialog(Gtk.Window parentWindow, DomainInformation[] domainArray, string defaultDomainID, string initialPath)
: base(Util.GS("Convert to an iFolder..."), parentWindow,
DialogFlags.Modal | DialogFlags.DestroyWithParent | DialogFlags.NoSeparator,
Stock.Help, ResponseType.Help, Stock.Cancel, ResponseType.Cancel, Stock.Ok, ResponseType.Ok)
{
domains = domainArray;
this.defaultDomainID = defaultDomainID;
this.Icon = new Gdk.Pixbuf(Util.ImagesPath("ifolder24.png"));
this.initialPath = initialPath;
Widget widgets = SetupWidgets();
widgets.ShowAll();
this.VBox.Add(widgets);
}
示例6: CreateDialog
public CreateDialog(Gtk.Window parentWindow, DomainInformation[] domainArray, string filteredDomainID, string initialPath, iFolderWebService ifws)
: base("", Util.GS("Create a new iFolder..."), parentWindow, FileChooserAction.CreateFolder, Stock.Cancel, ResponseType.Cancel,
Stock.Ok, ResponseType.Ok)
{
domains = domainArray;
this.Icon = new Gdk.Pixbuf(Util.ImagesPath("ifolder24.png"));
this.initialPath = initialPath;
this.ifws = ifws;
keyReleasedTimeoutID = 0;
if (this.initialPath != null && this.initialPath.Length > 0)
this.SetCurrentFolder(this.initialPath);
this.ExtraWidget = CreateMoreOptionsExpander(filteredDomainID);
this.SetResponseSensitive(ResponseType.Ok, false);
}
示例7: iFoldersListView
public iFoldersListView( DomainInformation domainInfo, ImageList largeImageList )
{
this.domainInfo = domainInfo;
InitializeComponent();
tileListView1.LargeImageList = largeImageList;
this.richTextBox1.Text = string.Format( richTextBox1.Text, domainInfo.Name + " - " + domainInfo.Host );
this.richTextBox2.Text = string.Format(" ");
Graphics g = richTextBox1.CreateGraphics();
try
{
SizeF textSize = g.MeasureString(richTextBox1.Text, richTextBox1.Font);
this.Width = (int)(textSize.Width * 1.1);
}
finally
{
g.Dispose();
}
base.DoubleClick += new EventHandler(iFoldersListView_DoubleClick);
}
示例8: ServerInfo
public ServerInfo(Manager simiasManager, DomainInformation domainInfo, string password)
{
InitializeComponent();
this.domainInfo = domainInfo;
this.simiasManager = simiasManager;
if (password != null)
{
this.password.Text = password;
rememberPassword.Checked = true;
}
int delta = calculateSize(serverLabel2, 0);
delta = calculateSize(userLabel2, delta);
delta = calculateSize(passwordLabel2, delta);
if (delta > 0)
{
serverLabel2.Width = userLabel2.Width = passwordLabel2.Width += delta;
int temp = serverName.Left;
serverName.Left = userName.Left = this.password.Left = rememberPassword.Left = serverLabel2.Left + serverLabel2.Width;
serverName.Width = userName.Width = this.password.Width = rememberPassword.Width -= serverName.Left - temp;
}
}
示例9: AddDomainToList
public void AddDomainToList(DomainInformation domainInfo)
{
if (domainInfo.IsDefault)
{
if ((defaultDomainInfo != null) && !defaultDomainInfo.ID.Equals(domainInfo.ID))
{
defaultDomainInfo.IsDefault = false;
}
defaultDomainInfo = domainInfo;
}
addDomainToFile(domainInfo);
}
示例10: updateDomainInfo
private void updateDomainInfo(DomainInformation dw)
{
titleUser.Text = TrayApp.Properties.Resources.user + ": " + dw.MemberName;
titleServer.Text = TrayApp.Properties.Resources.server + ": " + dw.Host;
titleAvailable.Text = TrayApp.Properties.Resources.availableQuota + ": " +
calcAvailableQuota(dw.MemberUserID);
titleUsed.Text = TrayApp.Properties.Resources.usedQuota + ": " +
calcUsedQuota(dw.MemberUserID);
titleNOFolders.Text = TrayApp.Properties.Resources.noifolder + ": " +
this.ifWebService.GetiFoldersForDomain(dw.ID).Length;
}
示例11: setAuthState
private void setAuthState(DomainInformation dw)
{
if (dw.Authenticated)
{
LoginLogoff.Text = TrayApp.Properties.Resources.logoff;
pictureBox1.Image = new Bitmap(Path.Combine(Application.StartupPath, @"res\ifolder_connect_128.png"));
}
else
{
LoginLogoff.Text = TrayApp.Properties.Resources.login;
pictureBox1.Image = new Bitmap(Path.Combine(Application.StartupPath, @"res\ifolder_discon_128.png"));
}
}
示例12: serverListComboBox_SelectedIndexChanged
private void serverListComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
DomainInformation[] domains;
domains = this.simiasWebService.GetDomains(false);
int index = 0;
foreach (DomainInformation dw in domains)
{
try
{
if (index == ((ComboBox)sender).SelectedIndex)
{
selectedDomain = dw;
updateDomainInfo(dw);
setAuthState(dw);
break;
}
index++;
}
catch { }
}
}
示例13: removeDomainFromFile
private void removeDomainFromFile(DomainInformation domainInfo, string defaultDomainID)
{
XmlDocument domainsDoc;
domainsDoc = new XmlDocument();
domainsDoc.Load(domainList);
XmlElement element = (XmlElement)domainsDoc.SelectSingleNode("/domains");
XmlNode domainNode = null;
XmlNodeList nodeList = element.GetElementsByTagName("domain");
foreach (XmlNode node in nodeList)
{
string id = ((XmlElement)node).GetAttribute("ID");
if (id.Equals(domainInfo.ID))
{
domainNode = node;
break;
}
}
if (domainNode != null)
{
element.RemoveChild(domainNode);
}
if (defaultDomainID != null)
{
element = (XmlElement)domainsDoc.SelectSingleNode("/domains/defaultDomain");
if (!element.GetAttribute("ID").Equals(defaultDomainID))
{
element.SetAttribute("ID", defaultDomainID);
}
}
saveXmlFile(domainsDoc);
}
示例14: LogoutDomain
public void LogoutDomain(DomainInformation dom)
{
try
{
domainController.LogoutDomain(dom.ID);
dom.Authenticated = false;
iFolderData ifdata = iFolderData.GetData();
ifdata.Refresh();
}
catch (Exception ex)
{
iFolderMsgDialog dg = new iFolderMsgDialog(
topLevelWindow,
iFolderMsgDialog.DialogType.Error,
iFolderMsgDialog.ButtonSet.Ok,
"",
Util.GS("Unable to log out of the iFolder Server"),
Util.GS("An error was encountered while logging out of the iFolder Server. If the problem persists, please contact your network administrator."));
dg.Run();
dg.Hide();
dg.Destroy();
}
}
示例15: UpdateQoutaData
private void UpdateQoutaData(DomainInformation domain)
{
string str,str1 = null;
iFolderViewGroup ifGrp = null;
if (domain == null) return;
try
{
PopulateUsedAvailableQuotaData(domain);
str = string.Format(Util.GS("Disk Space Available: {0}"), diskQuotaAvailable );
str1 = string.Format(Util.GS("Disk Space Used: {0}"), diskQuotaUsed ) ;
str = str + " " + str1;
ifGrp = (iFolderViewGroup)serverGroups[domain.ID];
if(ifGrp != null)
{
ifGrp.QoutaLabel.Markup = string.Format("<span size=\"small\">{0}</span>", GLib.Markup.EscapeText(str));
}
}
catch
{
}
}