void cancel(object obj) { BatchTeacherWindow window = obj as BatchTeacherWindow; window.CourseLevels = values; window.IsSave = true; window.DialogResult = window.IsSave; }
void save(object obj) { BatchTeacherWindow window = obj as BatchTeacherWindow; window.CourseLevels = values; window.IsSave = true; this.ShowDialog("提示信息", "保存成功", CustomControl.Enums.DialogSettingType.NoButton, CustomControl.Enums.DialogType.None); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.win = ((OSKernel.Presentation.Arranging.Mixed.Dialog.BatchTeacherWindow)(target)); return; case 2: this.lst_course = ((System.Windows.Controls.ListBox)(target)); return; } this._contentLoaded = true; }