• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# DomainInformation类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中DomainInformation的典型用法代码示例。如果您正苦于以下问题:C# DomainInformation类的具体用法?C# DomainInformation怎么用?C# DomainInformation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DomainInformation类属于命名空间,在下文中一共展示了DomainInformation类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:7,代码来源:Connecting.cs


示例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;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:8,代码来源:DefaultiFolderPage.cs


示例3: BonjourAccountDialog

 public BonjourAccountDialog(Window parent, DomainInformation curDomain)
     : base(parent, curDomain)
 {
     ifdata = iFolderData.GetData();
        this.simiasManager = Util.GetSimiasManager();
        domainController = DomainController.GetDomainController();
        SetupDialog();
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:8,代码来源:BonjourAccountDialog.cs


示例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);
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:11,代码来源:EnterpriseAccountDialog.cs


示例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);
     }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:13,代码来源:DragCreateDialog.cs


示例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);
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:14,代码来源:CreateDialog.cs


示例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);
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:19,代码来源:iFoldersListView.cs


示例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;
        }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:21,代码来源:ServerInfo.cs


示例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);
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:12,代码来源:GlobalProperties.cs


示例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;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:11,代码来源:GlobalProperties.cs


示例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"));
     }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:13,代码来源:GlobalProperties.cs


示例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 { }
     }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:21,代码来源:GlobalProperties.cs


示例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);
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:31,代码来源:GlobalProperties.cs


示例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();
        }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:23,代码来源:PrefsAccountsPage.cs


示例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
     {
     }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:21,代码来源:iFolderWindow.cs


示例16: UpdateDomain

 public void UpdateDomain(DomainInformation domainInfo)
 {
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:3,代码来源:GlobalProperties.cs


示例17: UpdateSelectedServerDetails

 public void UpdateSelectedServerDetails(DomainInformation domain)
 {
     DomainInformation currentDomain = domain;
       if(labelUser != null && currentDomain != null)
        {
        labelUser.Text = string.Format(Util.GS("User: {0}"), currentDomain.MemberName);
        }
     if (labeliFolderCount != null && labeliDiskUsed != null
     && labeliDiskAvailable != null
     && currentDomain != null)
     {
      UriBuilder serverUri = new UriBuilder(currentDomain.HostUrl);
      labelServer.Text = string.Format(Util.GS("Server: {0}"), serverUri.Host);
      labeliFolderCount.Text = string.Format(Util.GS("No. of iFolder: {0}"),ifws.GetiFoldersForDomain(currentDomain.ID).Length);
      PopulateUsedAvailableQuotaData(currentDomain);
      labeliDiskAvailable.Text =string.Format(Util.GS("Available:") + diskQuotaAvailable);
      labeliDiskUsed.Text = string.Format(Util.GS("Used:") + diskQuotaUsed);
     }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:19,代码来源:iFolderWindow.cs


示例18: UpdateiFolderCount

 public void UpdateiFolderCount(DomainInformation currentDomain)
 {
     DomainInformation domain = currentDomain;
                 if(null == domain)
                 {
                         domain = UpdateCurrentServer();
                 }
                 labeliFolderCount.Text = string.Format(Util.GS("No. of iFolder: {0}"),ifws.GetiFoldersForDomain(domain.ID).Length);
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:9,代码来源:iFolderWindow.cs


示例19: UpdateCurrentServer

 public DomainInformation UpdateCurrentServer()
 {
     int count=0, index = 0 ;
        DomainInformation dom = null;
      if(ViewUserDomainList != null)
      {
     index = ViewUserDomainList.Active;
     ComboBoxSelectionIndex = ViewUserDomainList.Active;
      }
        DomainInformation[] domains = domainController.GetDomains();
        foreach (DomainInformation domain in domains)
        {
       dom = domain;
      if(count == index)
        {
        break;
        }
      count++;
         }
      ServerDomain = dom;
      UpdateServerStatButton();
      return dom;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:23,代码来源:iFolderWindow.cs


示例20: PopulateUsedAvailableQuotaData

 public void PopulateUsedAvailableQuotaData(DomainInformation domain)
 {
     if (domain == null ) return;
        try{
     diskQuotaUsed = CalculateDiskUsed(domain.MemberUserID);
     diskQuotaAvailable = CalculateDiskQouta(domain.MemberUserID);
       }
       catch
       {
     diskQuotaUsed = Util.GS("N/A");
     diskQuotaAvailable = Util.GS("N/A");
       }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:13,代码来源:iFolderWindow.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# DomainObject类代码示例发布时间:2022-05-24
下一篇:
C# DomainContext类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap