private void updateUnit(CUpdate cup, CSubLog logger) { CUnit cu = getObjectById(cup.gid_); if (cu == null) { throw new Exception("Missing Unit in update: " + cup.gid_); } //firstly, is this an order update if (cup.order_ != null) { cu.ord_ = cup.order_; return; } foreach (string uptype in cup.updates_.Keys) { string value = cup.updates_[uptype]; if (!cu.update(uptype, value, logger)) { if (aiLogging_) { dlogger_.info("Missing Update for " + uptype); } continue; } } }
public MainWindow() { InitializeComponent(); BtnLogin.Tag = PackIconOcticonsKind.SignIn; textblockLogin.DataContext = changedPropertyNotifier; rectLoginIcon.DataContext = changedPropertyNotifier; iliasHandling = new CIliasHandling(this, changedPropertyNotifier); tabSync.Content = new SyncPage(this, iliasHandling, changedPropertyNotifier); tabCourseConfig.Content = new CoursePage(iliasHandling, changedPropertyNotifier); tabFolderConfig.Content = new FolderPage(); tabGeneralConfig.Content = new GeneralPage(); tabInfo.Content = new HelpPage(); styleChanger = new StyleChanger(config); styleChanger.Hide(); notifyIcon.Icon = Properties.Resources.dliconWHITEsquare; notifyIcon.MouseDown += new System.Windows.Forms.MouseEventHandler(NotifyIcon_MouseDown); notifyIcon.DoubleClick += delegate(object sender, EventArgs e) { this.Show(); WindowState = WindowState.Normal; }; notifyIcon.BalloonTipClicked += new EventHandler(NotifyIcon_BalloonTipClicked); updater = new CUpdate(notifyIcon, contextMenu); }
static public void CreateUpdateRes() { CUpdate window = (CUpdate)EditorWindow.GetWindow(typeof(CUpdate)); window.Show(); }