public MessageShowDialog(int docID, Rectangle rect) : base(rect) { InitializeComponent(); infoGrid.Init(Environment.Layout); optionFolder = Environment.Layout.Folders.Add(Name); Width = optionFolder.LoadIntOption("Width", Width); Height = 32; infoGrid.LoadInfo(docID); infoGrid.DataBindingComplete += new DataGridViewBindingCompleteEventHandler(infoGrid_DataBindingComplete); MessageShowDialog_SizeChanged(); DropDown(); }
public void ShowInfoGrid(bool Init = false) { if (Init) { InfoGrid.Init(); } InfoGrid.BeginAnimation(MarginProperty, new ThicknessAnimation() { From = InfoGrid.Margin, To = new Thickness(0, 0, 0, 0), Duration = TimeSpan.FromSeconds(0.5), EasingFunction = new ExponentialEase() { Exponent = Math.E, EasingMode = EasingMode.EaseOut } }); }