public PublicationExplorerItemRenameWindow(WebLibraryDetail web_library_detail, string tag) { this.web_library_detail = web_library_detail; this.tag = tag; //Theme.Initialize(); -- already done in StandardWindow base class InitializeComponent(); Title = "Qiqqa - Rename or Delete Publication"; CmdGenerate.Caption = "Rename"; CmdGenerate.Icon = Icons.GetAppIcon(Icons.LibraryAnnotationsReport); CmdCancel.Caption = "Cancel"; CmdCancel.Icon = Icons.GetAppIcon(Icons.Cancel); CmdGenerate.Click += CmdGenerate_Click; CmdCancel.Click += CmdCancel_Click; TextNewTagName.Text = tag; TextNewTagName.SelectAll(); TextNewTagName.Focus(); TextNewTagName.KeyUp += TextNewTagName_KeyUp; RefreshSpans(); SizeChanged += RecalcTextFieldWidthCb; Loaded += CalcTextFieldWidthCb; }
public PublicationExplorerItemRenameWindow(Library library, string tag) { this.library = library; this.tag = tag; InitializeComponent(); this.Title = "Qiqqa - Rename or Delete Publication"; CmdGenerate.Caption = "Rename"; CmdGenerate.Icon = Icons.GetAppIcon(Icons.LibraryAnnotationsReport); CmdCancel.Caption = "Cancel"; CmdCancel.Icon = Icons.GetAppIcon(Icons.Cancel); CmdGenerate.Click += CmdGenerate_Click; CmdCancel.Click += CmdCancel_Click; TextNewTagName.Text = tag; TextNewTagName.SelectAll(); TextNewTagName.Focus(); TextNewTagName.KeyUp += TextNewTagName_KeyUp; RefreshSpans(); }