Пример #1
0
 private void WatchListLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     WatchListForm watchList = new WatchListForm();
     watchList.Size = this.Size;
     watchList.Location = this.Location;
     watchList.Show();
     this.Close();
 }
Пример #2
0
        public WatchListForm CreateWatchListForm(string layoutXML = null)
        {
            Guid newGuid = Guid.NewGuid();

            WatchListForm newWatchList = new WatchListForm();

            if (layoutXML != null)
            {
                newWatchList.StartPosition = FormStartPosition.Manual;
                newWatchList.LoadLayoutXML(layoutXML);
            }
            formLayoutList.Add(newWatchList);
            newWatchList.FormClosing += (object sender, FormClosingEventArgs e) => formLayoutList.Remove(newWatchList);

            newWatchList.Show();
            return(newWatchList);
        }